/* ── auth.css ── */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'DM Sans', sans-serif;
    min-height: 100vh;
    overflow: hidden;
}

.auth-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 14vw;
}

.bg-image {
    position: absolute;
    inset: 0;
    background: url('../images/coming-soon-bg.jpg') center center / cover no-repeat;
    z-index: 0;
}

.bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(3, 18, 60, 0.92) 0%,
        rgba(3, 18, 60, 0.75) 38%,
        rgba(3, 18, 60, 0.30) 65%,
        rgba(3, 18, 60, 0.10) 100%
    );
    z-index: 1;
}

.bg-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,10,0.55) 100%);
    z-index: 2;
}

/* Brand block */
.brand-block {
    position: absolute;
    left: 14vw;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    max-width: 380px;
    animation: fadeUp 0.9s ease both;
}

.brand-logo { margin-bottom: 20px; }
.brand-logo img { height: 48px; filter: brightness(0) invert(1); }

.brand-eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #7ec8e3;
    margin-bottom: 14px;
    border-left: 3px solid #7ec8e3;
    padding-left: 10px;
}

.brand-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.18;
    margin-bottom: 16px;
}
.brand-title span { color: #7ec8e3; }

.brand-desc {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.62);
    line-height: 1.7;
    font-weight: 300;
}

.brand-divider {
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #7ec8e3, transparent);
    margin: 24px 0;
}

.trust-badges { display: flex; gap: 20px; flex-wrap: wrap; }
.badge { display: flex; align-items: center; gap: 7px; font-size: 0.75rem; color: rgba(255,255,255,0.55); }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: #7ec8e3; flex-shrink: 0; }

/* Auth card */
.auth-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 440px;
    max-height: 96vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.35), 0 8px 24px rgba(0,0,0,0.15);
    animation: slideIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
    scrollbar-width: thin;
    scrollbar-color: #d0dce8 transparent;
}

.auth-card::-webkit-scrollbar { width: 4px; }
.auth-card::-webkit-scrollbar-track { background: transparent; }
.auth-card::-webkit-scrollbar-thumb { background: #d0dce8; border-radius: 4px; }

.auth-card::before {
    content: '';
    display: block;
    height: 5px;
    background: linear-gradient(90deg, #0d6eaa, #7ec8e3, #30749e);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
    position: sticky;
    top: 0;
    z-index: 1;
}

.card-inner {
    padding: 36px 40px 40px;
    position: relative;
}

/* Card header */
.card-header { margin-bottom: 24px; }

.card-header-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.card-header-text { flex: 1; }

.card-logo { flex-shrink: 0; }

.card-logo img {
    height: 72px;
    width: auto;
    object-fit: contain;
    display: block;
}

.card-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #2078ae;
    font-weight: 600;
    margin-bottom: 10px;
    background: rgba(13,110,170,0.08);
    padding: 4px 10px;
    border-radius: 20px;
}

.card-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #0d6eaa;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f1c35;
    line-height: 1.2;
}

.card-subtitle {
    margin-top: 5px;
    font-size: 0.84rem;
    color: #8896a5;
}

/* Hide child view duplicate headings */
.auth-card .card-inner > .auth-form-content > h1:first-child,
.auth-card .card-inner > .auth-form-content > h2:first-child,
.auth-card .card-inner > .auth-form-content > .form-title,
.auth-card .card-inner > .auth-form-content > .auth-title,
.auth-card .card-inner > .auth-form-content > p.subtitle:first-of-type {
    display: none !important;
}

/* Form elements */
.auth-card label,
.auth-card .form-label {
    display: block;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    color: #3d4f63 !important;
    letter-spacing: 0.03em;
    margin-bottom: 7px !important;
}

.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="tel"],
.auth-card input[type="number"],
.auth-card select,
.auth-card textarea,
.auth-card .form-input,
.auth-card .form-control {
    width: 100% !important;
    padding: 12px 14px !important;
    background: #f5f8fc !important;
    border: 1.5px solid #e2eaf3 !important;
    border-radius: 12px !important;
    color: #0f1c35 !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.9rem !important;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none;
}

.auth-card input::placeholder,
.auth-card textarea::placeholder { color: #b0bfcf !important; }

.auth-card input:focus,
.auth-card select:focus,
.auth-card textarea:focus {
    border-color: #0d6eaa !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(13,110,170,0.1) !important;
}

.auth-card input.is-invalid,
.auth-card .form-control.is-invalid {
    border-color: #e53e3e !important;
    background: #fff5f5 !important;
}

.auth-card .form-group,
.auth-card .mb-4,
.auth-card .mb-5 { margin-bottom: 18px !important; }

/* Submit button */
.auth-card button[type="submit"],
.auth-card input[type="submit"],
.auth-card .btn-primary,
.auth-card .btn-login {
    width: 100% !important;
    padding: 13px !important;
    background: linear-gradient(135deg, #1a7abf 0%, #0d4f80 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    color: #fff !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.03em !important;
    cursor: pointer !important;
    transition: transform 0.15s, box-shadow 0.2s !important;
    box-shadow: 0 6px 24px rgba(13,79,128,0.4) !important;
    margin-top: 8px !important;
}

.auth-card button[type="submit"]:hover,
.auth-card .btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 32px rgba(13,79,128,0.5) !important;
}

.auth-card input[type="checkbox"] {
    width: auto !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    accent-color: #0d6eaa;
}

.auth-card .invalid-feedback,
.auth-card .form-error,
.auth-card .text-danger,
.auth-card .text-red-500 {
    font-size: 0.75rem !important;
    color: #e53e3e !important;
    margin-top: 4px !important;
}

.auth-card a { color: #0d6eaa; font-weight: 500; text-decoration: none; }
.auth-card a:hover { text-decoration: underline; }

.auth-card small,
.auth-card .text-muted,
.auth-card .text-gray-500 {
    font-size: 0.78rem !important;
    color: #8896a5 !important;
}

/* Footer strip */
.card-footer-strip {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #edf2f7;
    text-align: center;
    font-size: 0.78rem;
    color: #8896a5;
    line-height: 1.8;
}

.card-footer-strip a { color: #0d6eaa; font-weight: 600; text-decoration: none; }
.card-footer-strip a:hover { text-decoration: underline; }

/* Animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(calc(-50% + 24px)); }
    to   { opacity: 1; transform: translateY(-50%); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(32px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsive */
@media (max-width: 1200px) {
    .auth-wrapper { padding-right: 5vw; }
}

@media (max-width: 900px) {
    .auth-wrapper { justify-content: center; padding-right: 0; padding: 16px; }
    .brand-block  { display: none; }
    .auth-card    { max-width: 480px; max-height: 92vh; }
    .bg-overlay   { background: rgba(3, 18, 60, 0.78); }
}

@media (max-width: 480px) {
    .auth-card    { border-radius: 16px; }
    .card-inner   { padding: 24px 20px 28px; }
    .card-logo img { height: 56px; }
}