/*
 * CNR Login Page — ChatNoRegister
 * Version: 1.0
 */

/* ── Reset & base ─────────────────────────────────── */
#cnr_login_wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: #080810;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Animated background orbs ─────────────────────── */
.cnr_bg { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.cnr_bg_orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.12;
    animation: cnrFloat 8s ease-in-out infinite;
}
.cnr_orb1 {
    width: 500px; height: 500px;
    background: #6c63ff;
    top: -100px; left: -100px;
    animation-delay: 0s;
}
.cnr_orb2 {
    width: 400px; height: 400px;
    background: #ff6584;
    bottom: -80px; right: -80px;
    animation-delay: 3s;
}
.cnr_orb3 {
    width: 300px; height: 300px;
    background: #43e97b;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 6s;
}
@keyframes cnrFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-30px) scale(1.05); }
}

/* ── Card wrapper ─────────────────────────────────── */
.cnr_card_wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    padding: 20px 16px 30px;
}

/* ── Main card ────────────────────────────────────── */
.cnr_card {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(108,99,255,0.18);
    border-radius: 20px;
    padding: 32px 28px 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(108,99,255,0.08);
}

/* ── Header ──────────────────────────────────────── */
.cnr_header { text-align: center; margin-bottom: 24px; }
.cnr_logo   { height: 52px; margin-bottom: 10px; }
.cnr_title  {
    font-size: 22px; font-weight: 700;
    color: #fff; margin: 0 0 4px;
    letter-spacing: -0.3px;
}
.cnr_sub {
    font-size: 13px; color: rgba(255,255,255,0.45); margin: 0;
}

/* ── Tabs ─────────────────────────────────────────── */
.cnr_tabs {
    display: flex;
    background: rgba(0,0,0,0.25);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 20px;
    gap: 2px;
}
.cnr_tab {
    flex: 1;
    padding: 9px 6px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: rgba(255,255,255,0.45);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.cnr_tab i { margin-right: 4px; }
.cnr_tab:hover { color: rgba(255,255,255,0.75); }
.cnr_tab_active {
    background: #6c63ff;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(108,99,255,0.4);
}

/* ── Panel desc ──────────────────────────────────── */
.cnr_panel_desc {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    text-align: center;
    margin: 0 0 16px;
}

/* ── Fields ──────────────────────────────────────── */
.cnr_field {
    position: relative;
    margin-bottom: 12px;
}
.cnr_field_icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(108,99,255,0.6);
    font-size: 13px;
    pointer-events: none;
}
.cnr_input, .cnr_select {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(108,99,255,0.2) !important;
    border-radius: 10px;
    padding: 12px 14px 12px 38px;
    color: #fff !important;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
}
.cnr_input::placeholder { color: rgba(255,255,255,0.3); }
.cnr_input:focus, .cnr_select:focus {
    border-color: rgba(108,99,255,0.6) !important;
    box-shadow: 0 0 0 3px rgba(108,99,255,0.12);
}
.cnr_select option { background: #1e1e2e; color: #fff; }

/* ── Two-column row ──────────────────────────────── */
.cnr_row2 {
    display: flex;
    gap: 10px;
}
.cnr_field_half { flex: 1; }

/* ── Button ──────────────────────────────────────── */
.cnr_btn {
    width: 100%;
    box-sizing: border-box;
    padding: 13px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 4px;
    letter-spacing: 0.3px;
}
.cnr_btn_primary {
    background: linear-gradient(135deg, #6c63ff, #8b5cf6);
    color: #fff;
    box-shadow: 0 4px 15px rgba(108,99,255,0.35);
}
.cnr_btn_primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(108,99,255,0.5);
}
.cnr_btn_primary:active { transform: translateY(0); }

/* ── Forgot password ─────────────────────────────── */
.cnr_forgot {
    text-align: center;
    margin-top: 10px;
    font-size: 12px;
    color: rgba(255,255,255,0.35);
}
.cnr_forgot .bclick:hover { color: #6c63ff; }

/* ── Agree text ──────────────────────────────────── */
.cnr_agree {
    text-align: center;
    margin-top: 10px;
    font-size: 11px;
    color: rgba(255,255,255,0.3);
}
.cnr_link { color: #6c63ff; cursor: pointer; }
.cnr_link:hover { text-decoration: underline; }

/* ── Language button ─────────────────────────────── */
.cnr_lang_btn {
    display: flex;
    justify-content: center;
    margin-top: 16px;
    opacity: 0.4;
    transition: opacity 0.2s;
}
.cnr_lang_btn:hover { opacity: 0.8; }
.cnr_lang_btn img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }

/* ── Feature strip ───────────────────────────────── */
.cnr_features {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.cnr_feature {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.cnr_feature i { color: #6c63ff; font-size: 12px; }

/* ── Captcha ─────────────────────────────────────── */
.g-recaptcha { margin: 8px 0; }

/* ── Mobile ──────────────────────────────────────── */
@media (max-width: 480px) {
    .cnr_card { padding: 24px 18px 20px; border-radius: 16px; }
    .cnr_card_wrap { padding: 16px 12px 20px; }
    .cnr_tab { font-size: 11px; padding: 8px 4px; }
    .cnr_features { gap: 12px; }
    .cnr_feature span { display: none; }
}
