/* Authentication Page Styles */
@import 'style.css';

:root {
    --auth-bg: #FFFFFF;
    --auth-accents: #EEF2FF;
}

body {
    overflow-x: hidden;
    background-color: var(--bg-body);
}

.auth-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background: var(--auth-bg);
    position: relative;
    overflow: hidden;
}

/* Left components - Form Section */
.auth-sidebar {
    width: 50%;
    padding: 3rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 10;
    transition: all 0.5s ease;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
}

.auth-header {
    margin-bottom: 2rem;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 3rem;
    text-decoration: none;
}

.auth-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* Toggle Switch */
.auth-toggle {
    display: flex;
    background: var(--bg-body);
    padding: 0.35rem;
    border-radius: 12px;
    margin-bottom: 2.5rem;
    width: fit-content;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.toggle-btn {
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    border: none;
    font-size: 0.95rem;
}

.toggle-btn.active {
    background: #FFFFFF;
    color: var(--primary-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: scale(1.02);
}

/* Forms */
.auth-form {
    max-width: 480px;
    width: 100%;
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.auth-form.active {
    display: block;
}

.input-group {
    position: relative;
    margin-bottom: 1.5rem;
    background: #FFFFFF;
}

/* Floating Label Styles */
.input-group label {
    position: absolute;
    left: 2.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
    transition: all 0.2s ease;
    padding: 0 0.25rem;
    background: transparent;
    z-index: 2;
    /* Above the input */
}

.form-field:focus~label,
.form-field:not(:placeholder-shown)~label {
    top: 0 !important;
    left: 0.75rem !important;
    font-size: 0.75rem !important;
    color: var(--primary-color);
    background: #FFFFFF;
    padding: 0 0.25rem;
    font-weight: 600;
    transform: translateY(-50%);
    z-index: 2;
}

.form-field:not(:placeholder-shown)~label {
    color: var(--text-secondary);
}

.form-field:focus~label {
    color: var(--primary-color);
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: color 0.3s;
    font-size: 1.1rem;
    z-index: 2;
    /* Above the input */
}

.form-field {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s;
    background: #F9FAFB;
    color: #111827;
    /* Explicit dark text color */
    position: relative;
    z-index: 1;
}

.form-field:focus {
    outline: none;
    background: #FFFFFF;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.form-field:focus+.input-icon,
.form-field:not(:placeholder-shown)+.input-icon {
    color: var(--primary-color);
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    cursor: pointer;
}

.custom-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

input[type="checkbox"]:checked+.custom-checkbox {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

input[type="checkbox"]:checked+.custom-checkbox i {
    opacity: 1;
}

.custom-checkbox i {
    color: white;
    font-size: 0.75rem;
    opacity: 0;
    transition: all 0.2s;
}

.forgot-password {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: opacity 0.2s;
}

.forgot-password:hover {
    opacity: 0.8;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #4338CA 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.4);
}

/* Social Divider */
.social-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0;
    color: var(--text-muted);
}

.social-divider::before,
.social-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.social-divider span {
    padding: 0 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Social Buttons */
.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: white;
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.social-btn:hover {
    background: #F8FAFC;
    border-color: #CBD5E1;
    transform: translateY(-1px);
}

.social-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Right Section - Static Showcase */
.auth-showcase {
    width: 50%;
    position: relative;
    padding: 0;
    background: #EEF5F0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.showcase-static {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.showcase-image-static {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Forgot Password Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 1.5rem;
    padding: 2.5rem;
    max-width: 420px;
    width: 90%;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border: none;
    background: #F3F4F6;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.modal-close:hover {
    background: #E5E7EB;
    color: var(--text-primary);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    width: 100%;
}

.modal-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    width: 100%;
    line-height: 1.5;
}

.modal-form {
    margin-bottom: 1.5rem;
}

.modal-form .input-group {
    margin-bottom: 1.5rem;
}

.modal-form .form-label {
    position: absolute;
    left: 3rem;
    top: 1rem;
    pointer-events: none;
    transition: 0.2s;
    color: var(--text-muted);
}

.back-to-login {
    display: block;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
}

.back-to-login:hover {
    color: var(--primary-color);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .auth-sidebar {
        padding: 2rem;
    }

    .auth-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
    }

    .auth-sidebar {
        width: 100%;
        padding: 2rem 1.5rem;
    }

    .auth-showcase {
        display: none;
        /* Hide image on mobile for cleaner focus */
    }

    .auth-form {
        max-width: 100%;
    }
}