/* ================================================================
   Xtremetecs — Auth Modal Styles
   Matches site palette: --bg-color:#1f242d  --main-color:#0ef
   ================================================================ */

/* ── Overlay ─────────────────────────────────────────────────── */
.auth-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 1.6rem;
}

.auth-overlay.auth-visible {
    opacity: 1;
    pointer-events: auto;
}

/* ── Modal card ──────────────────────────────────────────────── */
.auth-modal {
    background: #1f242d;
    border: 1px solid rgba(0, 239, 255, 0.18);
    border-radius: 1.6rem;
    width: 100%;
    max-width: 44rem;
    max-height: 90vh;
    overflow-y: auto;
    padding: 3.6rem 3.2rem 3.2rem;
    position: relative;
    box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.7), 0 0 4rem rgba(0, 239, 255, 0.06);
    transform: translateY(2rem) scale(0.97);
    transition: transform 0.3s ease;
    scrollbar-width: thin;
    scrollbar-color: #0ef3 transparent;
}

.auth-overlay.auth-visible .auth-modal {
    transform: translateY(0) scale(1);
}

/* ── Close button ────────────────────────────────────────────── */
.auth-close {
    position: absolute;
    top: 1.6rem;
    right: 1.8rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    font-size: 2.4rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.4rem;
    transition: color 0.2s;
}

.auth-close:hover { color: #0ef; }

/* ── Screens ─────────────────────────────────────────────────── */
.auth-screen { display: none; }
.auth-screen.auth-active { display: block; }

/* ── Logo area ───────────────────────────────────────────────── */
.auth-brand {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.8rem;
    letter-spacing: -0.02em;
}

.auth-brand span { color: #0ef; }

/* ── Titles & subtitles ──────────────────────────────────────── */
.auth-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 0.6rem;
}

.auth-subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
    margin-bottom: 2.4rem;
    line-height: 1.5;
}

/* ── Back button ─────────────────────────────────────────────── */
.auth-back {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0;
    margin-bottom: 1.6rem;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.auth-back:hover { color: #0ef; }

/* ── Step indicator ──────────────────────────────────────────── */
.auth-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 2.4rem;
}

.auth-steps .step {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}

.auth-steps .step.active {
    border-color: #0ef;
    color: #0ef;
    box-shadow: 0 0 1rem rgba(0, 239, 255, 0.3);
}

.auth-steps .step.done {
    background: #0ef;
    border-color: #0ef;
    color: #111;
}

.auth-steps .step-line {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.12);
    max-width: 4rem;
}

/* ── Primary action buttons ──────────────────────────────────── */
.auth-btn-primary {
    width: 100%;
    padding: 1.3rem;
    background: #0ef;
    color: #111;
    border: none;
    border-radius: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1.6rem;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    letter-spacing: 0.01em;
}

.auth-btn-primary:hover {
    background: #29f5ff;
    box-shadow: 0 0 2rem rgba(0, 239, 255, 0.35);
}

.auth-btn-primary:active { transform: scale(0.98); }

.auth-btn-primary:disabled {
    background: rgba(0, 239, 255, 0.35);
    cursor: not-allowed;
    transform: none;
}

/* ── Secondary button ────────────────────────────────────────── */
.auth-btn-secondary {
    width: 100%;
    padding: 1.3rem;
    background: transparent;
    color: #0ef;
    border: 2px solid #0ef;
    border-radius: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    transition: background 0.2s, transform 0.1s;
}

.auth-btn-secondary:hover { background: rgba(0, 239, 255, 0.1); }
.auth-btn-secondary:active { transform: scale(0.98); }

/* ── Choice screen ───────────────────────────────────────────── */
.auth-choice-wrap {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 0.8rem;
}

/* ── Form fields ─────────────────────────────────────────────── */
.auth-field {
    margin-bottom: 1.6rem;
}

.auth-field label {
    display: block;
    font-size: 1.3rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0.7rem;
}

.auth-field input {
    width: 100%;
    padding: 1.2rem 1.4rem;
    background: #323946;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.9rem;
    color: #fff;
    font-size: 1.5rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-field input::placeholder { color: rgba(255, 255, 255, 0.3); }

.auth-field input:focus {
    border-color: #0ef;
    box-shadow: 0 0 0 3px rgba(0, 239, 255, 0.12);
}

/* password toggle wrapper */
.auth-input-wrap {
    position: relative;
}

.auth-input-wrap input { padding-right: 4.8rem; }

.auth-eye {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.35);
    transition: color 0.2s;
    line-height: 1;
}

.auth-eye:hover { color: #0ef; }

.auth-eye svg {
    width: 1.9rem;
    height: 1.9rem;
    display: block;
    pointer-events: none;
}

/* ── Error message ───────────────────────────────────────────── */
.auth-error {
    background: rgba(255, 59, 59, 0.12);
    border: 1px solid rgba(255, 59, 59, 0.35);
    border-radius: 0.8rem;
    color: #ff6b6b;
    font-size: 1.3rem;
    padding: 1rem 1.4rem;
    margin-top: 1.2rem;
    text-align: center;
    line-height: 1.4;
}

/* ── Warning message ─────────────────────────────────────────── */
.auth-warning {
    background: rgba(255, 190, 0, 0.1);
    border: 1px solid rgba(255, 190, 0, 0.3);
    border-radius: 0.8rem;
    color: #ffd966;
    font-size: 1.3rem;
    padding: 1rem 1.4rem;
    margin-top: 1.2rem;
    text-align: center;
}

/* ── Switch link ─────────────────────────────────────────────── */
.auth-switch {
    text-align: center;
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2rem;
}

.auth-switch a {
    color: #0ef;
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.2s;
}

.auth-switch a:hover { opacity: 0.75; }

/* ── Verification method buttons ─────────────────────────────── */
.auth-method-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.auth-method-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 2rem 1.2rem;
    background: #323946;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.2rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.4rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s;
    text-align: center;
    line-height: 1.3;
}

.auth-method-btn i {
    font-size: 2.2rem;
    color: rgba(0, 239, 255, 0.7);
    transition: color 0.25s;
}

.auth-method-btn small {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.4);
    word-break: break-all;
}

.auth-method-btn:hover,
.auth-method-btn.selected {
    border-color: #0ef;
    background: rgba(0, 239, 255, 0.07);
    color: #fff;
}

.auth-method-btn:hover i,
.auth-method-btn.selected i { color: #0ef; }

.auth-method-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ── Phone input area ────────────────────────────────────────── */
.auth-phone-area {
    margin-top: 0.4rem;
}

/* ── 6-digit code inputs ─────────────────────────────────────── */
.auth-code-inputs {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 0.4rem 0 1.6rem;
}

.code-digit,
.reset-digit {
    width: 4.8rem;
    height: 5.6rem;
    background: #323946;
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
    color: #fff;
    font-size: 2.4rem;
    font-weight: 700;
    text-align: center;
    caret-color: #0ef;
    transition: border-color 0.2s, box-shadow 0.2s;
    -moz-appearance: textfield;
}

.code-digit::-webkit-outer-spin-button,
.code-digit::-webkit-inner-spin-button,
.reset-digit::-webkit-outer-spin-button,
.reset-digit::-webkit-inner-spin-button { -webkit-appearance: none; }

.code-digit:focus,
.reset-digit:focus {
    border-color: #0ef;
    box-shadow: 0 0 0 3px rgba(0, 239, 255, 0.15);
    outline: none;
}

.code-digit.filled,
.reset-digit.filled { border-color: rgba(0, 239, 255, 0.5); }

/* ── Resend link ─────────────────────────────────────────────── */
.auth-resend {
    text-align: center;
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 1.6rem;
}

.auth-resend a {
    color: #0ef;
    cursor: pointer;
    font-weight: 600;
}

.auth-resend a.disabled {
    color: rgba(255, 255, 255, 0.3);
    pointer-events: none;
    cursor: default;
}

.auth-countdown {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 0.4rem;
}

/* ── Password strength ───────────────────────────────────────── */
.auth-pw-strength {
    margin-top: 0.8rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.strength-bars {
    display: flex;
    gap: 0.4rem;
    flex: 1;
}

.strength-bar {
    height: 4px;
    flex: 1;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.3s;
}

.strength-bar.weak   { background: #ff4444; }
.strength-bar.medium { background: #ffa500; }
.strength-bar.strong { background: #0ef; }

.strength-label {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    min-width: 5rem;
    text-align: right;
}

/* ── Password rules ──────────────────────────────────────────── */
.auth-pw-rules {
    list-style: none;
    margin-top: 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1.2rem;
}

.auth-pw-rules li {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
}

.auth-pw-rules li::before {
    content: '○';
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.25);
}

.auth-pw-rules li.valid {
    color: #0ef;
}

.auth-pw-rules li.valid::before { content: '✓'; color: #0ef; }

/* ── Success screen ──────────────────────────────────────────── */
.auth-success-icon {
    text-align: center;
    font-size: 5.6rem;
    color: #0ef;
    margin-bottom: 1.6rem;
    animation: successPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes successPop {
    0%   { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* ── Spinner on buttons ──────────────────────────────────────── */
.auth-spinner {
    display: inline-block;
    width: 1.6rem;
    height: 1.6rem;
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-top-color: #111;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 0.6rem;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Navbar auth button ──────────────────────────────────────── */
.auth-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: transparent;
    border: 1.5px solid #0ef;
    border-radius: 2rem;
    color: #0ef;
    font-size: 1.5rem;
    font-weight: 500;
    padding: 0.5rem 1.6rem;
    cursor: pointer;
    margin-left: 2.4rem;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
    font-family: 'Poppins', sans-serif;
    vertical-align: middle;
}

.auth-nav-btn:hover {
    background: #0ef;
    color: #111 !important;
}

.auth-nav-btn:hover span,
.auth-nav-btn:hover i {
    color: #111 !important;
}

/* User menu dropdown */
.auth-user-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 2.4rem;
    vertical-align: middle;
}

.auth-user-btn {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: rgba(0, 239, 255, 0.1);
    border: 1.5px solid rgba(0, 239, 255, 0.35);
    border-radius: 2rem;
    color: #0ef;
    font-size: 1.4rem;
    font-weight: 500;
    padding: 0.5rem 1.4rem;
    cursor: pointer;
    transition: background 0.2s;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
    max-width: 18rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.auth-user-btn:hover { background: rgba(0, 239, 255, 0.18); }

.auth-dropdown {
    position: absolute;
    top: calc(100% + 1rem);
    right: 0;
    background: #232a36;
    border: 1px solid rgba(0, 239, 255, 0.18);
    border-radius: 1.2rem;
    min-width: 18rem;
    box-shadow: 0 1.2rem 3.6rem rgba(0, 0, 0, 0.55);
    overflow: hidden;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.5rem) scale(0.97);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.auth-dropdown.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.auth-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.1rem 1.6rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

.auth-dropdown-item i {
    font-size: 1.4rem;
    width: 1.6rem;
    text-align: center;
    flex-shrink: 0;
}

.auth-dropdown-item:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.auth-dropdown-item.danger { color: #ff6b6b; }
.auth-dropdown-item.danger:hover { background: rgba(255, 59, 59, 0.1); }
a.auth-dropdown-item {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    display: flex;
    width: 100%;
    box-sizing: border-box;
}

/* ── Phone row with country selector ────────────────────────── */
.auth-phone-row {
    display: flex;
    gap: 0.8rem;
    align-items: stretch;
}

.auth-phone-row input[type="tel"] {
    flex: 1;
    min-width: 0;
    padding: 1.2rem 1.4rem;
    background: #323946;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.9rem;
    color: #fff;
    font-size: 1.5rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: 'Poppins', sans-serif;
}

.auth-phone-row input[type="tel"]::placeholder { color: rgba(255, 255, 255, 0.3); }
.auth-phone-row input[type="tel"]:focus {
    border-color: #0ef;
    box-shadow: 0 0 0 3px rgba(0, 239, 255, 0.12);
    outline: none;
}

/* Country selector wrapper */
.cs-wrap {
    position: relative;
    flex-shrink: 0;
}

/* Trigger button */
.cs-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 100%;
    min-height: 4.8rem;
    padding: 0 1.2rem;
    background: #323946;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.9rem;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.2s;
    font-family: 'Poppins', sans-serif;
}

.cs-trigger:hover,
.cs-trigger.open { border-color: #0ef; }

#cs-flag { font-size: 1.8rem; line-height: 1; }
#cs-dial { font-size: 1.4rem; font-weight: 500; }

.cs-arrow {
    font-size: 1rem;
    opacity: 0.5;
    transition: transform 0.2s;
}

.cs-trigger.open .cs-arrow { transform: rotate(180deg); }

/* Dropdown panel */
.cs-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    width: 29rem;
    max-height: 30rem;
    background: #252c38;
    border: 1.5px solid rgba(0, 239, 255, 0.2);
    border-radius: 1.2rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 500;
    box-shadow: 0 1.2rem 4rem rgba(0, 0, 0, 0.55);
}

/* Search bar */
.cs-search-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    flex-shrink: 0;
}

.cs-search-row i {
    color: rgba(255, 255, 255, 0.35);
    font-size: 1.3rem;
}

#cs-search {
    flex: 1;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

#cs-search::placeholder { color: rgba(255, 255, 255, 0.28); }

/* Country list */
.cs-list {
    list-style: none;
    overflow-y: auto;
    flex: 1;
    padding: 0.4rem 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 239, 255, 0.2) transparent;
}

.cs-list::-webkit-scrollbar { width: 4px; }
.cs-list::-webkit-scrollbar-thumb { background: rgba(0, 239, 255, 0.2); border-radius: 2px; }

.cs-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.85rem 1.2rem;
    cursor: pointer;
    transition: background 0.12s;
}

.cs-list li:hover { background: rgba(0, 239, 255, 0.07); }

.cl-flag { font-size: 1.8rem; line-height: 1; flex-shrink: 0; }
.cl-name { flex: 1; font-size: 1.35rem; color: rgba(255, 255, 255, 0.82); }
.cl-dial { font-size: 1.25rem; color: rgba(255, 255, 255, 0.38); white-space: nowrap; }

/* Responsive phone row */
@media (max-width: 500px) {
    .cs-dropdown { width: calc(100vw - 4rem); left: 0; }
    #cs-dial { font-size: 1.3rem; }
}

/* ── Full-width country selector (tax country) ──────────────── */
.cs-wrap-full { width: 100%; display: block; }

.cs-trigger-full {
    width: 100%;
    justify-content: flex-start;
    gap: 0.9rem;
}

.tc-flag { font-size: 1.8rem; line-height: 1; flex-shrink: 0; }
.tc-name {
    flex: 1;
    text-align: left;
    font-size: 1.5rem;
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cs-trigger-full .cs-arrow { margin-left: auto; flex-shrink: 0; }

.cs-wrap-full .cs-dropdown { width: 100%; }

/* search input inside dropdown must stay flat (override .auth-field input) */
#tc-search {
    flex: 1;
    background: none;
    border: none;
    padding: 0;
    color: #fff;
    font-size: 1.4rem;
    outline: none;
    box-shadow: none;
    font-family: 'Poppins', sans-serif;
}
#tc-search::placeholder { color: rgba(255, 255, 255, 0.28); }
#tc-search:focus { border: none; box-shadow: none; }

/* ── Account type selection ──────────────────────────────────── */
.auth-type-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem;
    margin: 0.8rem 0 0.4rem;
}

.auth-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2.4rem 1.2rem;
    background: #323946;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.4rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.auth-type-btn i {
    font-size: 3rem;
    color: rgba(0, 239, 255, 0.6);
    transition: color 0.25s, transform 0.25s;
}

.auth-type-btn small {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
}

.auth-type-btn:hover {
    border-color: #0ef;
    background: rgba(0, 239, 255, 0.07);
    color: #fff;
    transform: translateY(-2px);
}

.auth-type-btn:hover i {
    color: #0ef;
    transform: scale(1.1);
}

@media (max-width: 500px) {
    .auth-type-btns { gap: 1rem; }
    .auth-type-btn { padding: 1.8rem 0.8rem; font-size: 1.4rem; }
    .auth-type-btn i { font-size: 2.4rem; }
}

/* ── Utility ─────────────────────────────────────────────────── */
.auth-hidden { display: none !important; }

/* ── Scrollbar ───────────────────────────────────────────────── */
.auth-modal::-webkit-scrollbar { width: 4px; }
.auth-modal::-webkit-scrollbar-thumb { background: rgba(0, 239, 255, 0.25); border-radius: 2px; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 500px) {
    .auth-modal {
        padding: 3rem 2rem 2.4rem;
        border-radius: 1.2rem;
    }

    .auth-title { font-size: 1.8rem; }

    .auth-method-btns {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }

    .auth-method-btn { padding: 1.4rem 0.8rem; font-size: 1.3rem; }
    .auth-method-btn i { font-size: 1.8rem; }

    .code-digit,
    .reset-digit {
        width: 3.8rem;
        height: 4.8rem;
        font-size: 2rem;
    }

    .auth-code-inputs { gap: 0.6rem; }

    .auth-pw-rules { grid-template-columns: 1fr; }

    .auth-nav-btn {
        font-size: 1.3rem;
        padding: 0.4rem 1.2rem;
        margin-left: 1.2rem;
    }

    .auth-user-btn {
        font-size: 1.2rem;
        padding: 0.4rem 1rem;
        max-width: 12rem;
    }
}

@media (max-width: 360px) {
    .code-digit,
    .reset-digit { width: 3.2rem; height: 4.2rem; font-size: 1.8rem; }
    .auth-code-inputs { gap: 0.4rem; }
}
