@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8fafc;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Main Container */
.login-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    position: relative;
}

/* Header */
.header {
    position: relative;
    margin-bottom: 2rem;
    text-align: center;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.logo-image {
    height: 45px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

/* Login Card */
.login-card {
    background: white;
    border-radius: 16px;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 380px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.login-card:hover {
    box-shadow: 
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.login-content {
    padding: 1.75rem 2rem;
}

/* Title */
.login-title {
    font-size: 1.625rem;
    font-weight: 700;
    color: #1a202c;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

/* Signin Section */
.signin-section {
    margin-bottom: 1.25rem;
}

.signin-text {
    font-size: 0.875rem;
    color: #4a5568;
    text-align: center;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Google Button */
.google-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.625rem 1.5rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 1rem;
}

.google-btn:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.google-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Divider */
.divider {
    position: relative;
    text-align: center;
    margin: 1rem 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
}

.divider span {
    background: white;
    padding: 0 1rem;
    color: #718096;
    font-size: 0.75rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* Form */
.login-form {
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 0.75rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.375rem;
}

.required {
    color: #e53e3e;
    margin-right: 0.25rem;
}

.optional-text {
    color: #718096;
    font-size: 0.75rem;
    font-weight: 400;
}

.form-input {
    width: 100%;
    padding: 0.625rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #2d3748;
    background: white;
    transition: all 0.2s ease;
}

.form-input::placeholder {
    color: #a0aec0;
}

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

.form-input.is-invalid {
    border-color: #e53e3e;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #e53e3e;
}

/* Password Input Container */
.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-container .form-input {
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: #718096;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: #4a5568;
}

.password-toggle:focus {
    outline: none;
    color: #2d3748;
}

.eye-icon {
    width: 20px;
    height: 20px;
}

.password-toggle.hidden .eye-icon {
    display: none;
}

.password-toggle.hidden::after {
    content: '';
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24'/%3E%3Cline x1='1' y1='1' x2='23' y2='23'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

/* Forgot Password */
.forgot-password {
    text-align: right;
    margin-bottom: 1rem;
}

.forgot-password a {
    color: #e53e3e;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-password a:hover {
    color: #c53030;
    text-decoration: underline;
}

/* Forgot Description */
.forgot-description {
    color: #718096;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Sign In Button */
.signin-btn {
    width: 100%;
    padding: 0.625rem 1.5rem;
    background: linear-gradient(135deg, #f6e05e 0%, #ecc94b 100%);
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #2d3748;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 1rem;
}

.signin-btn:hover {
    background: linear-gradient(135deg, #ecc94b 0%, #d69e2e 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(246, 224, 94, 0.3);
}

/* Form Footer */
.form-footer {
    text-align: center;
    font-size: 0.875rem;
    color: #4a5568;
    margin-bottom: 1rem;
}

.form-footer a {
    color: #e53e3e;
    text-decoration: none;
    font-weight: 600;
    margin-left: 0.25rem;
    transition: color 0.2s ease;
}

.form-footer a:hover {
    color: #c53030;
    text-decoration: underline;
}

/* Terms and Privacy Policy */
.terms-policy {
    text-align: center;
    margin-bottom: 1rem;
}

.terms-text {
    font-size: 0.75rem;
    color: #718096;
    line-height: 1.4;
    margin: 0;
}

.terms-link {
    color: #667eea;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}

.terms-link:hover {
    color: #5a67d8;
    text-decoration: underline;
}

/* Language Selector */
.language-selector {
    text-align: center;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.globe-icon {
    color: #718096;
}

.arrow-icon {
    color: #a0aec0;
}

/* Alerts */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.alert-danger {
    background: #fed7d7;
    border: 1px solid #feb2b2;
    color: #c53030;
}

.alert-success {
    background: #c6f6d5;
    border: 1px solid #9ae6b4;
    color: #22543d;
}

/* Responsive Design */
@media (max-width: 640px) {
    .login-container {
        padding: 0.25rem;
    }
    
    .header {
        margin-bottom: 1.5rem;
    }
    
    .logo-image {
        height: 35px;
    }
    
    .login-content {
        padding: 1.5rem 1.5rem;
    }
    
    .login-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .google-btn {
        padding: 0.625rem 1rem;
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
    }
    
    .form-input {
        padding: 0.5rem 0.875rem;
    }
    
    .password-input-container .form-input {
        padding-right: 2.5rem;
    }
    
    .password-toggle {
        right: 0.5rem;
    }
    
    .signin-btn {
        padding: 0.625rem 1rem;
        margin-bottom: 0.75rem;
    }
    
    .form-footer {
        margin-bottom: 0.75rem;
    }
    
    .terms-policy {
        margin-bottom: 0.75rem;
    }
    
    .terms-text {
        font-size: 0.7rem;
    }
    
    .forgot-description {
        font-size: 0.8rem;
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 480px) {
    .login-content {
        padding: 1.25rem 1rem;
    }
    
    .logo-image {
        height: 30px;
    }
    
    .login-title {
        font-size: 1.375rem;
        margin-bottom: 0.75rem;
    }
    
    .signin-text {
        font-size: 0.8rem;
        margin-bottom: 0.375rem;
    }
    
    .google-btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .form-label {
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
    }
    
    .form-input {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
    
    .password-input-container .form-input {
        padding-right: 2.25rem;
    }
    
    .password-toggle {
        right: 0.375rem;
    }
    
    .eye-icon {
        width: 18px;
        height: 18px;
    }
    
    .signin-btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.875rem;
        margin-bottom: 0.75rem;
    }
    
    .form-footer {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
    }
    
    .terms-policy {
        margin-bottom: 0.75rem;
    }
    
    .terms-text {
        font-size: 0.65rem;
    }
    
    .forgot-description {
        font-size: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .lang-btn {
        font-size: 0.7rem;
        padding: 0.375rem 0.75rem;
    }
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card {
    animation: fadeInUp 0.6s ease-out;
}

.header {
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

