/* ═══════════════════════════════════════
   AUTH PAGES — LOGIN / SIGNUP STYLES
   ═══════════════════════════════════════ */

.auth-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: var(--bg-main);
    font-family: var(--font-primary);
}

.auth-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.auth-left {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.auth-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(26, 75, 142, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(250, 166, 26, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.auth-left::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.auth-left-content {
    position: relative;
    z-index: 1;
    max-width: 480px;
}

.auth-brand {
    display: inline-block;
    margin-bottom: 48px;
}

.auth-logo {
    max-width: 200px;
    height: auto;
    filter: brightness(0) invert(1);
}

.auth-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 4vw, 3.5rem);
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.auth-hero-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 48px;
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 16px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    font-weight: 500;
}

.auth-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(26, 75, 142, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.auth-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
}

.auth-right::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%);
    pointer-events: none;
}

.auth-form-container {
    width: 100%;
    max-width: 460px;
    position: relative;
    z-index: 1;
}

.auth-form-header {
    margin-bottom: 36px;
}

.auth-form-header h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.auth-form-header p {
    font-size: 1.05rem;
    color: var(--text-muted);
}

.auth-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.auth-alert-error {
    background: #FEF2F2;
    color: #DC2626;
    border: 1px solid #FECACA;
}

.auth-alert-success {
    background: #F0FDF4;
    color: #16A34A;
    border: 1px solid #BBF7D0;
}

.auth-alert .auth-link {
    color: #16A34A;
    font-weight: 700;
    text-decoration: underline;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-form-group label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
}

.auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-forgot {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
}

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

.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    pointer-events: none;
    opacity: 0.5;
}

.auth-input-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    background: var(--bg-alt);
    border: 1.5px solid var(--border-light);
    border-radius: 14px;
    color: var(--text-main);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.auth-input-wrapper input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.auth-input-wrapper input:focus {
    background: var(--bg-card);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-dim);
}

.auth-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.auth-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.auth-checkbox {
    display: none;
}

.auth-checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-light);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.auth-checkbox:checked + .auth-checkbox-custom {
    background: var(--accent);
    border-color: var(--accent);
}

.auth-checkbox:checked + .auth-checkbox-custom::after {
    content: '';
    width: 6px;
    height: 10px;
    border: 2px solid white;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translateY(-1px);
}

.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: white;
    border: none;
    border-radius: 14px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px var(--accent-glow);
    letter-spacing: 0.5px;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(26, 75, 142, 0.3);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-light);
}

.auth-switch {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.auth-switch a {
    color: var(--accent);
    font-weight: 700;
}

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

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

    .auth-left {
        display: none;
    }

    .auth-right {
        padding: 40px 24px;
        min-height: 100vh;
    }
}

@media (max-width: 480px) {
    .auth-form-row {
        grid-template-columns: 1fr;
    }

    .auth-right {
        padding: 32px 20px;
    }
}
