/* Login Page Styles */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
}

.login-container {
    width: 100%;
    max-width: 550px;
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 35px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.login-header h1 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 600;
}

.login-header p {
    color: #6c757d;
    font-size: 0.95rem;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.9rem;
}

.login-form input[type="email"],
.login-form input[type="password"],
.login-form input[type="text"],
.login-form input[type="tel"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.login-form input[type="email"]:focus,
.login-form input[type="password"]:focus,
.login-form input[type="text"]:focus,
.login-form input[type="tel"]:focus {
    border-color: #3498db;
    background: #ffffff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
}

.login-form input[type="email"].error,
.login-form input[type="password"].error,
.login-form input[type="text"].error,
.login-form input[type="tel"].error {
    border-color: #e74c3c;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #3498db;
}

.checkbox-group label {
    font-size: 0.9rem;
    color: #6c757d;
    cursor: pointer;
    margin-bottom: 0;
}

.forgot-link {
    font-size: 0.9rem;
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

.alert-error {
    background: #fef2f2;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    border: 1px solid #fecaca;
}

.btn-login,
.btn-register {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-login:hover,
.btn-register:hover {
    background: linear-gradient(135deg, #2980b9 0%, #2471a3 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

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

.btn-loading {
    display: none;
}

.btn-loading.active {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-text.hidden {
    display: none;
}

.divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: #6c757d;
    font-size: 0.85rem;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e9ecef;
}

.divider span {
    padding: 0 15px;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-social {
    width: 100%;
    padding: 12px 24px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #ffffff;
    color: #2c3e50;
}

.btn-social:hover {
    background: #f8f9fa;
    border-color: #3498db;
}

.btn-google {
    flex-direction: row;
}

.google-icon {
    flex-shrink: 0;
}

.login-footer,
.register-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e9ecef;
}

.login-footer p,
.register-footer p {
    color: #6c757d;
    font-size: 0.9rem;
}

.login-footer a,
.register-footer a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.login-footer a:hover,
.register-footer a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.terms-checkbox {
    margin-bottom: 20px;
}

.terms-checkbox .checkbox-group label {
    font-size: 0.85rem;
    color: #6c757d;
}

.terms-checkbox a {
    color: #3498db;
    text-decoration: none;
}

.terms-checkbox a:hover {
    text-decoration: underline;
}

/* Password visibility toggle */
.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #6c757d;
    padding: 4px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #3498db;
}

.password-toggle i {
    font-size: 1.1rem;
}

.password-input-wrapper input {
    padding-right: 45px;
}

/* Password strength indicator */
.password-strength {
    margin-top: 10px;
}

.strength-bar {
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    min-width: 4px;
    width: 0;
    transition: width 0.3s ease-in-out;
    border-radius: 2px;
}

.strength-fill.weak,
.strength-fill.medium,
.strength-fill.strong,
.strength-fill.match,
.strength-fill.mismatch {
    width: 100%;
}

.strength-fill.weak {
    width: 33%;
    background: linear-gradient(90deg, #e74c3c 0%, #e74c3c 100%);
}

.strength-fill.medium {
    width: 66%;
    background: linear-gradient(90deg, #f39c12 0%, #f39c12 100%);
}

.strength-fill.strong {
    width: 100%;
    background: linear-gradient(90deg, #27ae60 0%, #2ecc71 100%);
}

.strength-text {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.strength-text i {
    font-size: 0.75rem;
}

.strength-text.weak {
    color: #e74c3c;
}

.strength-text.medium {
    color: #f39c12;
}

.strength-text.strong {
    color: #27ae60;
}

/* Confirm password match indicator */
.confirm-strength {
    margin-top: 10px;
}

.confirm-strength .strength-bar {
    height: 4px;
}

.confirm-strength .strength-fill {
    transition: all 0.2s ease;
}

.confirm-strength .strength-fill.match {
    width: 100%;
    background: linear-gradient(90deg, #27ae60 0%, #2ecc71 100%);
}

.confirm-strength .strength-fill.mismatch {
    width: 100%;
    background: linear-gradient(90deg, #e74c3c 0%, #e74c3c 100%);
}

.confirm-strength .strength-text {
    display: flex;
    align-items: center;
    gap: 6px;
}

.confirm-strength .strength-text.match {
    color: #27ae60;
}

.confirm-strength .strength-text.mismatch {
    color: #e74c3c;
}

.confirm-strength .strength-text i {
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 480px) {
    .login-container,
    .register-container {
        padding: 30px 25px;
    }
    
    .login-header h1,
    .register-header h1 {
        font-size: 1.6rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}