/* ── Premium Auth Page Styles ── */

/* Entrance animation */
@keyframes authFadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Card ── */
.auth-card {
    max-width: 420px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0;
    overflow: hidden;
    position: relative;
    background: #fff;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.08),
        0 1px 4px rgba(0, 0, 0, 0.04);
    animation: authFadeInUp 0.5s ease both;
}

/* Orange accent bar */
.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #d86a12, #ff9f1c, #ed6a1a, #ff9f1c, #d86a12);
    background-size: 200% 100%;
    z-index: 2;
}

.auth-card .card-body {
    padding: 2.25rem 2rem;
}

/* Dark mode card — glassmorphism + inner gradient */
[data-bs-theme="dark"] .auth-card {
    background:
        linear-gradient(
            165deg,
            rgba(237, 106, 26, 0.05) 0%,
            rgba(255, 255, 255, 0.03) 30%,
            rgba(255, 255, 255, 0.02) 100%
        );
    border-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.5),
        0 8px 32px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Ambient glow behind card — dark mode only */
.auth-card-glow {
    position: relative;
    max-width: 420px;
    margin: 0 auto;
}

.auth-card-glow::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(237, 106, 26, 0.10) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

[data-bs-theme="light"] .auth-card-glow::before {
    display: none;
}

.auth-card-glow .auth-card {
    position: relative;
    z-index: 1;
}

/* ── Inputs ── */
.auth-card .form-control {
    border-radius: 8px;
    padding: 0.7rem 0.875rem;
    font-size: 0.875rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.auth-card .form-control::placeholder {
    color: rgba(0, 0, 0, 0.3);
    font-weight: 400;
}

[data-bs-theme="dark"] .auth-card .form-control {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
}

[data-bs-theme="dark"] .auth-card .form-control::placeholder {
    color: rgba(255, 255, 255, 0.22);
}

.auth-card .form-control:focus {
    box-shadow: 0 0 0 3px rgba(237, 106, 26, 0.15);
    border-color: rgba(237, 106, 26, 0.5);
}

[data-bs-theme="dark"] .auth-card .form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    box-shadow:
        0 0 0 3px rgba(237, 106, 26, 0.12),
        inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Labels */
.auth-card .form-label {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    margin-bottom: 0.375rem;
}

/* ── Primary Button ── */
.btn-auth-primary {
    background: #ed6a1a;
    border: 1px solid #ed6a1a;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.7rem 1rem;
    letter-spacing: 0.01em;
    box-shadow:
        0 2px 8px rgba(237, 106, 26, 0.3),
        0 0 0 1px rgba(237, 106, 26, 0.15);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-auth-primary:hover,
.btn-auth-primary:focus {
    background: #d85e14;
    border-color: #d85e14;
    color: #fff;
    transform: translateY(-1px);
    box-shadow:
        0 4px 16px rgba(237, 106, 26, 0.4),
        0 0 0 1px rgba(237, 106, 26, 0.3);
}

.btn-auth-primary:active {
    transform: translateY(0);
    box-shadow:
        0 1px 4px rgba(237, 106, 26, 0.25),
        0 0 0 1px rgba(237, 106, 26, 0.15);
}

/* ── Outline Button ── */
.btn-auth-outline {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: inherit;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.7rem 1rem;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn-auth-outline:hover {
    border-color: rgba(0, 0, 0, 0.25);
    background: rgba(0, 0, 0, 0.04);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

[data-bs-theme="dark"] .btn-auth-outline {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.85);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

[data-bs-theme="dark"] .btn-auth-outline:hover {
    border-color: rgba(255, 255, 255, 0.20);
    background: rgba(255, 255, 255, 0.07);
    box-shadow:
        0 1px 4px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* ── Divider ── */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.125rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
}

[data-bs-theme="dark"] .auth-divider::before,
[data-bs-theme="dark"] .auth-divider::after {
    background: rgba(255, 255, 255, 0.06);
}

.auth-divider span {
    padding: 0 0.75rem;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .auth-divider span {
    color: rgba(255, 255, 255, 0.2);
}

/* ── Heading ── */
.auth-heading {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
    animation: authFadeInUp 0.4s ease both;
}

.auth-heading span {
    color: #ed6a1a;
}

[data-bs-theme="dark"] .auth-heading {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 60%, rgba(237, 106, 26, 0.9));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-bs-theme="dark"] .auth-heading span {
    -webkit-text-fill-color: #ed6a1a;
}

/* ── Links ── */
.auth-link {
    color: rgba(0, 0, 0, 0.45);
    text-decoration: none;
    transition: color 0.15s ease;
}

.auth-link:hover {
    color: #ed6a1a;
}

[data-bs-theme="dark"] .auth-link {
    color: rgba(255, 255, 255, 0.4);
}

[data-bs-theme="dark"] .auth-link:hover {
    color: #ed6a1a;
}

/* ── Trust Signals ── */
.auth-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    animation: authFadeInUp 0.6s ease both;
}

.auth-trust-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 12px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.4);
}

.auth-trust-item i {
    font-size: 14px;
    color: rgba(237, 106, 26, 0.65);
}

[data-bs-theme="dark"] .auth-trust-item {
    color: rgba(255, 255, 255, 0.35);
}

[data-bs-theme="dark"] .auth-trust-item i {
    color: rgba(237, 106, 26, 0.75);
}

/* ── Mobile ── */
@media (max-width: 440px) {
    .auth-page > section {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

@media (max-width: 425px) {
    .auth-card .card-body {
        padding: 1.75rem 1.25rem;
    }

    .auth-heading {
        font-size: 1.35rem;
    }

    .auth-trust {
        gap: 0.75rem;
    }
}
