/* Auth Pages Styles */
.auth-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-container {
    width: 100%;
    max-width: 1200px;
}

.auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.auth-branding {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.branding-content {
    text-align: center;
}

.logo-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
}

.logo-large i {
    font-size: 3rem;
}

.branding-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.branding-content > p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 3rem;
}

.branding-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.branding-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.125rem;
}

.branding-feature i {
    font-size: 1.5rem;
}

.auth-form-container {
    padding: 4rem;
    background: white;
}

.auth-form-wrapper {
    max-width: 450px;
    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray);
    text-decoration: none;
    margin-bottom: 2rem;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--primary-color);
}

.auth-header {
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.auth-header p {
    color: var(--gray);
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.auth-form label i {
    color: var(--primary-color);
}

.auth-form input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: var(--primary-color);
}

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

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--gray);
    font-size: 0.875rem;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
}

.forgot-link:hover {
    text-decoration: underline;
}

.btn-full {
    width: 100%;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.divider span {
    padding: 0 1rem;
    color: var(--gray);
    font-size: 0.875rem;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
}

.btn-social:hover {
    border-color: var(--primary-color);
    background: #f8fafc;
}

.btn-google {
    color: #ea4335;
}

.btn-facebook {
    color: #1877f2;
}

.auth-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.auth-footer p {
    color: var(--gray);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.demo-accounts {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 10px;
    border: 2px dashed #e2e8f0;
}

.demo-title {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
    text-align: center;
}

.demo-account {
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: white;
    border-radius: 5px;
}

.demo-account strong {
    color: var(--dark);
}

/* Register Page Specific */
.name-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.password-strength {
    margin-top: 0.5rem;
}

.strength-bar {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-fill {
    height: 100%;
    width: 0;
    transition: all 0.3s;
    border-radius: 2px;
}

.strength-text {
    font-size: 0.75rem;
    color: var(--gray);
}

.strength-fill.weak {
    width: 33%;
    background: var(--danger-color);
}

.strength-fill.medium {
    width: 66%;
    background: var(--warning-color);
}

.strength-fill.strong {
    width: 100%;
    background: var(--success-color);
}

.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.terms-checkbox input {
    margin-top: 0.25rem;
}

.terms-checkbox label {
    font-size: 0.875rem;
    color: var(--gray);
}

.terms-checkbox a {
    color: var(--primary-color);
    text-decoration: none;
}

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

/* Responsive */
@media (max-width: 992px) {
    .auth-grid {
        grid-template-columns: 1fr;
    }

    .auth-branding {
        padding: 3rem 2rem;
    }

    .auth-form-container {
        padding: 3rem 2rem;
    }

    .branding-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .auth-page {
        padding: 1rem;
    }

    .auth-branding,
    .auth-form-container {
        padding: 2rem 1.5rem;
    }

    .auth-header h1 {
        font-size: 1.5rem;
    }

    .name-grid {
        grid-template-columns: 1fr;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

/* Loading State */
button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success/Error Messages */
.message {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.message i {
    font-size: 1.25rem;
}
