/* Auth screens. Matches the public dark layout. Sora headings, DM Sans body. */
.cii-auth-body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(800px 380px at 90% -10%, rgba(57, 200, 240, .18), transparent 60%),
        radial-gradient(640px 320px at -10% 80%, rgba(29, 78, 216, .2), transparent 55%),
        #05080f;
    color: #d7e2ee;
    font-family: "DM Sans", sans-serif;
}
.cii-auth-body h1,
.cii-auth-body h2,
.cii-auth-body h3 { font-family: Sora, sans-serif; color: #fff; letter-spacing: -.03em; }

.cig-auth-wrapper {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px 16px;
}
.cig-auth-container { width: min(1080px, 100%); }
.cig-auth-card {
    width: min(560px, 100%);
    margin: 0 auto;
    padding: 36px 32px 28px;
    border-radius: 28px;
    background: rgba(10, 18, 32, .92);
    border: 1px solid rgba(57, 200, 240, .28);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.cig-auth-card:has(.cig-auth-left) {
    width: min(1080px, 100%);
    padding: 0;
    display: grid;
    grid-template-columns: .92fr 1.08fr;
    overflow: hidden;
}
.cig-auth-left {
    position: relative;
    min-height: 100%;
    padding: 42px 36px;
    display: flex;
    align-items: flex-end;
    background:
        linear-gradient(180deg, rgba(5, 8, 15, .15), rgba(5, 8, 15, .82)),
        url('../../../images/cii-exchange-hero.jpg') center/cover;
    color: #fff;
}
.cig-auth-left h2 { margin: 12px 0 8px; font-size: clamp(28px, 3vw, 40px); line-height: 1.05; }
.cig-auth-left p { color: #d5e4f2; margin: 0; }
.cig-auth-logo { height: 46px; width: auto; display: block; margin-bottom: 18px; }
.cig-auth-right, .cig-auth-card > form, .cig-auth-header { position: relative; }
.cig-auth-right { padding: 36px 32px 28px; }
.cig-auth-header h1 { margin: 0 0 8px; font-size: 32px; }
.cig-auth-header p { color: #b7c6d6; margin: 0 0 22px; }
.cig-auth-icon {
    width: 52px; height: 52px; display: grid; place-items: center;
    margin-bottom: 14px; border-radius: 14px;
    background: rgba(57, 200, 240, .14); color: #39c8f0; font-size: 26px;
}
.cig-form-group, .mb-3 { margin-bottom: 16px; }
.cig-form-label, .cii-auth-body label {
    display: block; margin-bottom: 6px; color: #d5e4f2; font-size: 13px; font-weight: 600;
}
.cig-form-input, .cii-auth-body .form-control, .cii-auth-body input[type="text"],
.cii-auth-body input[type="email"], .cii-auth-body input[type="password"] {
    width: 100%; box-sizing: border-box;
    padding: 13px 14px; border-radius: 12px;
    border: 1px solid rgba(57, 200, 240, .28);
    background: #071018; color: #fff; font: inherit;
}
.cig-form-input:focus, .cii-auth-body .form-control:focus {
    outline: none; border-color: #39c8f0; box-shadow: 0 0 0 3px rgba(57, 200, 240, .15);
}
.cig-password-wrapper { position: relative; }
.cig-password-toggle { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: #9eb0c3; cursor: pointer; }
.cig-form-options, .cig-checkbox-group, .cig-checkbox-wrapper {
    display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px;
}
.cig-checkbox-wrapper label, .cig-checkbox-label { margin: 0; color: #c5d3e2; font-weight: 500; }
.cig-forgot-link, .cig-auth-footer a, .cig-back-link, .cig-help-text a, .cig-checkbox-label a { color: #8fe7fb; text-decoration: none; }
.cig-btn-primary, .cii-auth-body button[type="submit"] {
    width: 100%; border: 0; cursor: pointer; border-radius: 4px;
    padding: 14px 16px; font-family: Sora, sans-serif; font-weight: 700;
    color: #041018;
    background: linear-gradient(120deg, #7ee7ff, var(--sv-gold, #39c8f0) 45%, #1d6dff);
}
.cig-auth-footer, .cig-help-text, .cig-back-link { display: block; margin-top: 18px; color: #b7c6d6; text-align: center; }
.cig-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cig-referral-notice {
    display: flex; gap: 10px; align-items: center; margin-bottom: 16px; padding: 12px;
    border-radius: 12px; background: rgba(57, 200, 240, .08); border: 1px solid rgba(57, 200, 240, .25);
}
.text-danger { color: #fca5a5 !important; }
.cig-ban-reason { margin-top: 16px; padding: 14px; border-radius: 12px; background: rgba(239, 68, 68, .1); border: 1px solid rgba(239, 68, 68, .35); text-align: left; }
.cig-ban-reason h3 { color: #fecaca; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.cig-ban-reason p { color: #fee2e2; margin: 0; }
.verification-code { position: relative; }
.verification-code .boxes { display: flex; gap: 8px; }
.verification-code .boxes span {
    flex: 1; height: 52px; display: grid; place-items: center;
    border-radius: 12px; border: 1px solid rgba(57, 200, 240, .3);
    background: #071018; color: #fff; font-family: Sora, sans-serif; font-size: 20px;
}
.modal-content { background: #10192a; color: #d7e2ee; border: 1px solid rgba(57, 200, 240, .25); }
.modal-header, .modal-footer { border-color: rgba(255,255,255,.08) !important; }
.modal-title, .modal-body h6 { color: #fff !important; }

@media (max-width: 860px) {
    .cig-auth-card:has(.cig-auth-left) { grid-template-columns: 1fr; }
    .cig-auth-left { min-height: 220px; }
    .cig-form-row { grid-template-columns: 1fr; }
    .cig-auth-card, .cig-auth-right { padding: 24px 18px; }
}
