/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Login Container */
.login-container {
    width: 100%;
    max-width: 450px;
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Login Card */
.login-card {
    background: white;
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Login Header */
.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.login-header h1 {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 10px;
    font-weight: 700;
}

.login-header p {
    color: #666;
    font-size: 0.95em;
}

/* Login Form */
.login-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #555;
    margin-bottom: 10px;
    font-size: 0.95em;
}

.form-group label i {
    color: #667eea;
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1em;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* Error Message */
.error-message {
    background: #ffe0e0;
    color: #d32f2f;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9em;
    display: none;
    align-items: center;
    gap: 10px;
    border-left: 4px solid #d32f2f;
}

.error-message.show {
    display: flex;
    animation: shake 0.4s ease;
}

.error-message::before {
    content: '⚠️';
    font-size: 1.2em;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Login Button */
.btn-login {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login i {
    font-size: 1em;
}

/* Login Footer */
.login-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.login-footer p {
    color: #999;
    font-size: 0.85em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-footer i {
    color: #667eea;
}

/* Loading State */
.btn-login.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-login.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */

/* Tablet (768px and below) */
@media screen and (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .login-card {
        padding: 40px 30px;
    }
    
    .login-header h1 {
        font-size: 1.6em;
    }
    
    .login-header p {
        font-size: 0.9em;
    }
    
    .logo {
        width: 75px;
        height: 75px;
        font-size: 2.2em;
    }
    
    .form-group input {
        padding: 14px 18px;
        font-size: 0.95em;
    }
    
    .btn-login {
        padding: 14px 25px;
        font-size: 1em;
    }
}

/* Mobile Phones (480px and below) */
@media screen and (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .login-card {
        padding: 35px 25px;
        border-radius: 16px;
    }
    
    .login-header {
        margin-bottom: 30px;
    }
    
    .login-header h1 {
        font-size: 1.4em;
        margin-bottom: 8px;
    }
    
    .login-header p {
        font-size: 0.85em;
    }
    
    .logo {
        width: 65px;
        height: 65px;
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group label {
        font-size: 0.9em;
        margin-bottom: 8px;
    }
    
    .form-group input {
        padding: 13px 16px;
        font-size: 0.95em;
    }
    
    .btn-login {
        padding: 13px 20px;
        font-size: 0.95em;
    }
    
    .error-message {
        font-size: 0.85em;
        padding: 10px 12px;
    }
    
    .login-footer p {
        font-size: 0.8em;
    }
}

/* Small Mobile (360px and below) */
@media screen and (max-width: 360px) {
    .login-card {
        padding: 30px 20px;
    }
    
    .login-header h1 {
        font-size: 1.3em;
    }
    
    .logo {
        width: 60px;
        height: 60px;
        font-size: 1.6em;
    }
}