/* ========================================================
   AUTHENTICATION PAGES (REGISTER & LOGIN)
   ======================================================== */
.auth-container {
    padding: 3.5rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 180px);
}

.auth-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    padding: 2.25rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

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

.auth-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.6rem;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Form Fields Layout */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.form-input {
    width: 100%;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.85rem;
    color: var(--text-primary);
    font-family: var(--font-ui);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.form-input::placeholder {
    color: var(--text-muted);
}

/* Password Toggle Icon */
.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
}

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

/* Validation Feedback */
.error-msg {
    color: #EF4444;
    font-size: 0.75rem;
    margin-top: 0.2rem;
    display: none;
}

.btn-auth {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

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

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

/* Responsive Scaling */
@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .auth-title {
        font-size: 1.4rem;
    }
}

/* ========================================================
   SPLIT LAYOUT (MOTIVATION LEFT + FORM RIGHT)
   ======================================================== */
.auth-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
    max-width: 1040px;
    margin: 0 auto;
    width: 100%;
}

@media (min-width: 992px) {
    .auth-grid {
        grid-template-columns: 1fr 480px;
        gap: 3.5rem;
    }
}

/* Left Content Banner */
.auth-welcome-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.welcome-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.welcome-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* Feature Bullets */
.welcome-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-sm);
    color: var(--primary);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.feature-text-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.feature-text-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

@media (max-width: 991px) {
    .auth-welcome-content {
        text-align: center;
    }

    .welcome-title {
        font-size: 1.85rem;
    }

    .welcome-features {
        text-align: left;
    }
}