/* ═══════════════════════════════════════════════════════
   redeemai-auth-modern.css — aixiamo-style auth pages
   Matches Login.html + Register.html with .aixiamo-login-* classes
   ═══════════════════════════════════════════════════════ */

/* ── Page background ── */
.aixiamo-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background: transparent !important;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: transparent !important;
}

/* ── Shell — the two-panel card ── */
.aixiamo-login-shell {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    width: 100%;
    max-width: 1060px;
    min-height: 680px;
    border-radius: 36px;
    overflow: hidden;
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(226,232,240,0.5);
    box-shadow:
        0 25px 80px rgba(15,23,42,0.09),
        0 6px 20px rgba(15,23,42,0.04);
}

/* ── Left: Brand panel ── */
.aixiamo-login-brand {
    padding: 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #4338ca 0%, #6366f1 40%, #7c3aed 100%);
    color: #fff;
}
.aixiamo-login-brand::before {
    content: '';
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 70%);
    top: -80px;
    right: -60px;
    pointer-events: none;
}
.aixiamo-login-brand::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 70%);
    bottom: -40px;
    left: -30px;
    pointer-events: none;
}

.aixiamo-login-logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.3px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    color: #fff;
}
.aixiamo-login-logo span {
    color: #fff;
}

.aixiamo-login-slogan {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin: 0 0 32px;
    letter-spacing: 0.5px;
}

.aixiamo-login-brand h1 {
    font-size: 42px;
    font-weight: 950;
    line-height: 1.2;
    margin: 0 0 14px;
    color: #fff;
    letter-spacing: -1px;
}
.aixiamo-login-brand h1 strong {
    color: rgba(255,255,255,0.85);
    font-weight: 950;
}

.aixiamo-login-desc {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255,255,255,0.72);
    margin: 0 0 36px;
    max-width: 380px;
}

/* ── Shield visual ── */
.aixiamo-login-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 330px;
    height: 230px;
    margin: 0 auto 36px;
    position: relative;
}
.aixiamo-login-shield {
    width: 110px;
    height: 130px;
    background: linear-gradient(135deg, rgba(255,255,255,0.22), rgba(255,255,255,0.08));
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
}
.aixiamo-login-shield::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Pro', 'Font Awesome 6 Duotone', 'Font Awesome 6 Free', sans-serif;
    font-weight: 900;
    font-size: 36px;
    color: rgba(255,255,255,0.85);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ── Feature cards (3-column) ── */
.aixiamo-login-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    position: relative;
    z-index: 1;
}
.aixiamo-login-features > div {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 20px 16px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    transition: background 0.2s;
}
.aixiamo-login-features > div:hover {
    background: rgba(255,255,255,0.16);
}
.aixiamo-login-features i {
    font-size: 22px;
    color: rgba(255,255,255,0.9);
    display: block;
    margin-bottom: 10px;
}
.aixiamo-login-features b {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}
.aixiamo-login-features span {
    font-size: 11px;
    color: rgba(255,255,255,0.55);
    line-height: 1.4;
}

/* ── Right: Form side ── */
.aixiamo-login-form-side {
    padding: 48px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    position: relative;
}

/* Home link pill */
.aixiamo-auth-home-link {
    position: absolute;
    top: 28px;
    left: 28px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(241,245,249,0.9);
    backdrop-filter: blur(8px);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
    border: 1px solid rgba(226,232,240,0.6);
    transition: all 0.2s;
    z-index: 2;
}
.aixiamo-auth-home-link:hover {
    background: rgba(241,245,249,1);
    color: #4f46e5;
    border-color: rgba(99,102,241,0.3);
}
.aixiamo-auth-home-link i {
    font-size: 12px;
}

/* Top link (already have account / don't have account) */
.aixiamo-login-top {
    text-align: right;
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 24px;
    padding-top: 12px;
}

/* ── Login card ── */
.aixiamo-login-card {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
}

.aixiamo-login-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: linear-gradient(135deg, #eef2ff, #f0f0ff);
    color: #4f46e5;
    font-size: 12px;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 20px;
    border: 1px solid rgba(99,102,241,0.12);
}
.aixiamo-login-badge i {
    font-size: 13px;
}

.aixiamo-login-card h2 {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
    letter-spacing: -0.5px;
}

.aixiamo-login-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 28px;
}

/* ── Form fields ── */
.aixiamo-login-field {
    margin-bottom: 18px;
}
.aixiamo-login-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 7px;
}

.aixiamo-login-input {
    display: flex;
    align-items: center;
    height: 58px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 0 18px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    gap: 12px;
}
.aixiamo-login-input:focus-within {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99,102,241,0.1);
    background: #fff;
}
.aixiamo-login-input i {
    font-size: 16px;
    color: #94a3b8;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}
.aixiamo-login-input:focus-within i {
    color: #6366f1;
}
.aixiamo-login-input input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    color: #1e293b;
    height: 100%;
    padding: 0;
}
.aixiamo-login-input input::placeholder {
    color: #94a3b8;
    font-size: 14px;
}

/* ── Captcha row ── */
.aixiamo-login-captcha {
    display: flex;
    gap: 12px;
    align-items: stretch;
}
.aixiamo-captcha-img {
    height: 58px;
    border-radius: 16px;
    cursor: pointer;
    border: 1.5px solid #e2e8f0;
    flex-shrink: 0;
}
.aixiamo-send-code {
    height: 58px;
    padding: 0 20px;
    border-radius: 16px;
    border: 1.5px solid #6366f1;
    background: transparent;
    color: #6366f1;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s;
}
.aixiamo-send-code:hover {
    background: rgba(99,102,241,0.06);
}

/* ── Registration proof selector ── */
.aixiamo-register-proof {
    margin: 0 0 18px;
    padding: 0;
    border: 0;
}
.aixiamo-register-proof legend {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
}
.aixiamo-register-proof__choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.aixiamo-register-proof__choice {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 70px;
    padding: 12px;
    border: 1px solid rgba(148,163,184,.34);
    border-radius: 15px;
    background: rgba(255,255,255,.28);
    color: #475467;
    cursor: pointer;
    transition: border-color .2s, background .2s, box-shadow .2s;
}
.aixiamo-register-proof__choice.is-active {
    border-color: rgba(99,102,241,.72);
    background: rgba(238,242,255,.58);
    box-shadow: 0 0 0 3px rgba(99,102,241,.09);
}
.aixiamo-register-proof__choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.aixiamo-register-proof__choice > i {
    width: 22px;
    flex: 0 0 22px;
    text-align: center;
    color: #6257e8;
    font-size: 20px;
}
.aixiamo-register-proof__choice span,
.aixiamo-register-proof__choice strong,
.aixiamo-register-proof__choice small {
    display: block;
}
.aixiamo-register-proof__choice strong {
    font-size: 13px;
    color: #26324a;
}
.aixiamo-register-proof__choice small {
    margin-top: 3px;
    color: #7b8190;
    font-size: 11px;
    line-height: 1.35;
}
.aixiamo-register-proof__panel[hidden],
.aixiamo-register-telegram-card [hidden] {
    display: none !important;
}
.aixiamo-register-proof__hint,
.aixiamo-register-proof__recommend {
    margin: 7px 2px 0;
    color: #7b8190;
    font-size: 11px;
    line-height: 1.55;
}
.aixiamo-register-proof__recommend {
    margin: -4px 2px 18px;
    padding: 10px 12px;
    border: 1px solid rgba(34,158,217,.18);
    border-radius: 12px;
    background: rgba(231,247,255,.38);
    color: #496174;
}
.aixiamo-register-proof__recommend i {
    margin-right: 5px;
    color: #229ed9;
}
.aixiamo-register-telegram-card {
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid rgba(79,70,229,.18);
    border-radius: 15px;
    background: rgba(238,242,255,.38);
}
.aixiamo-register-telegram-card__title {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #374151;
    font-size: 13px;
}
.aixiamo-register-telegram-card__title i {
    color: #229ed9;
    font-size: 20px;
}
.aixiamo-register-telegram-card p {
    margin: 8px 0;
    color: #667085;
    font-size: 12px;
    line-height: 1.55;
}
.aixiamo-register-telegram-card .aixiamo-send-code {
    width: 100%;
}
#tg-register-pending {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
    color: #475467;
    font-size: 12px;
}
#tg-register-code {
    font-weight: 800;
}
#tg-register-link {
    color: #1689be;
}
.aixiamo-login-submit:disabled,
.aixiamo-send-code:disabled {
    opacity: .58;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ── Options row (remember + forgot) ── */
.aixiamo-login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    font-size: 13px;
}
.aixiamo-remember {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #64748b;
    cursor: pointer;
}
.aixiamo-remember input {
    accent-color: #6366f1;
    width: 16px;
    height: 16px;
}
.aixiamo-remember span {
    font-size: 13px;
}

/* ── Submit button ── */
.aixiamo-login-submit {
    width: 100%;
    height: 62px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #4338ca 0%, #6366f1 50%, #7c3aed 100%);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: transform 0.15s, box-shadow 0.15s;
    position: relative;
    overflow: hidden;
}
.aixiamo-login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99,102,241,0.35);
}
.aixiamo-login-submit:active {
    transform: translateY(0);
}

/* ── Divider ── */
.aixiamo-login-divider {
    text-align: center;
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 500;
    position: relative;
    margin: 24px 0;
    letter-spacing: 1px;
}
.aixiamo-login-divider::before,
.aixiamo-login-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 38%;
    height: 1px;
    background: #e2e8f0;
}
.aixiamo-login-divider::before { left: 0; }
.aixiamo-login-divider::after { right: 0; }

/* ── Bottom register/login link ── */
.aixiamo-login-register {
    text-align: center;
    font-size: 14px;
    color: #94a3b8;
    margin-top: 24px;
}

/* ── Text link ── */
.text-link {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.text-link:hover {
    color: #4338ca;
    text-decoration: underline;
}

/* ══════════════════════════════════════
   Responsive
   ══════════════════════════════════════ */

@media (max-width: 960px) {
    .aixiamo-login-shell {
        grid-template-columns: 1fr;
        max-width: 520px;
        min-height: auto;
        border-radius: 28px;
        overflow: visible;
    }
    .aixiamo-login-brand {
        padding: 40px 36px 32px;
        border-radius: 28px 28px 0 0;
    }
    .aixiamo-login-brand h1 {
        font-size: 30px;
    }
    .aixiamo-login-visual {
        width: 200px;
        height: 140px;
        margin-bottom: 24px;
    }
    .aixiamo-login-shield {
        width: 70px;
        height: 84px;
    }
    .aixiamo-login-shield::after {
        font-size: 24px;
    }
    .aixiamo-login-desc {
        margin-bottom: 24px;
    }
    .aixiamo-login-form-side {
        padding: 36px 32px 40px;
        border-radius: 0 0 28px 28px;
    }
    .aixiamo-auth-home-link {
        position: static;
        margin-bottom: 16px;
        display: inline-flex;
    }
}

@media (max-width: 600px) {
    .aixiamo-login-page {
        padding: 16px 10px;
        align-items: flex-start;
        padding-top: 24px;
    }
    .aixiamo-login-shell {
        border-radius: 24px;
        overflow: visible;
    }
    .aixiamo-login-brand {
        padding: 24px 20px 20px;
        border-radius: 24px 24px 0 0;
    }
    .aixiamo-login-brand h1 {
        font-size: 22px;
        margin-bottom: 8px;
    }
    .aixiamo-login-slogan {
        margin-bottom: 16px;
    }
    .aixiamo-login-desc {
        display: none;
    }
    .aixiamo-login-visual {
        display: none;
    }
    .aixiamo-login-features {
        gap: 8px;
    }
    .aixiamo-login-features > div {
        padding: 12px 8px;
        border-radius: 12px;
    }
    .aixiamo-login-features b {
        font-size: 12px;
    }
    .aixiamo-login-features span {
        display: none;
    }
    .aixiamo-login-form-side {
        padding: 24px 20px 28px;
        border-radius: 0 0 24px 24px;
    }
    .aixiamo-login-input {
        height: 52px;
        border-radius: 14px;
        padding: 0 14px;
    }
    .aixiamo-login-submit {
        height: 54px;
        border-radius: 14px;
        font-size: 15px;
    }
    .aixiamo-login-card h2 {
        font-size: 22px;
    }
    .aixiamo-captcha-img {
        height: 52px;
        border-radius: 14px;
    }
    .aixiamo-send-code {
        height: 52px;
        padding: 0 14px;
        border-radius: 14px;
        font-size: 12px;
    }
    .aixiamo-register-proof__choices {
        grid-template-columns: 1fr;
    }
    .aixiamo-register-proof__choice {
        min-height: 60px;
    }
}

/* ── Hide old auth elements (cleanup) ── */
.auth-wrapper,
.auth-layout,
.auth-aside,
.auth-form-card,
.auth-site-nav,
.auth-badge,
.auth-trust-strip,
.auth-panel-shell,
.auth-help-grid,
.auth-shortcuts,
.auth-inline-note,
.auth-feature-list-compact,
.auth-hero-visual,
.auth-home-link,
.auth-switch-row {
    /* only if old HTML fragments remain */
}

/* ── Override any bootstrap/global that leaks in ── */
.aixiamo-login-page *,
.aixiamo-login-page *::before,
.aixiamo-login-page *::after {
    box-sizing: border-box;
}
.aixiamo-login-page form {
    margin: 0;
}
.aixiamo-login-field input[type="number"] {
    -moz-appearance: textfield;
}
.aixiamo-login-field input[type="number"]::-webkit-outer-spin-button,
.aixiamo-login-field input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
