/* ═══════════════════════════════════════════════════════════════
   ValueBet Pro — Authentication Forms (Register, Login, Forgot Password)
   Matches the dark dashboard theme
   ═══════════════════════════════════════════════════════════════ */

.vb-auth-wrap {
    --vb-bg:         hsl(220, 25%, 7%);
    --vb-bg-card:    hsl(220, 25%, 10%);
    --vb-bg-input:   hsl(220, 25%, 8%);
    --vb-border:     hsl(220, 20%, 18%);
    --vb-border-hl:  hsl(220, 20%, 28%);
    --vb-text:       hsl(210, 20%, 90%);
    --vb-text-muted: hsl(215, 15%, 50%);
    --vb-cyan:       hsl(170, 80%, 50%);
    --vb-success:    hsl(145, 65%, 52%);
    --vb-danger:     hsl(0, 70%, 55%);
    --vb-warning:    hsl(38, 90%, 55%);
    --vb-font-mono:  "JetBrains Mono", monospace;

    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding: 40px 20px;
    color: var(--vb-text);
    font-family: var(--vb-font-mono);
}

.vb-auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--vb-bg-card);
    border: 1px solid var(--vb-border);
    border-radius: 16px;
    padding: 36px 32px;
    box-shadow: 0 8px 32px hsla(220, 25%, 5%, 0.4);
}

.vb-auth-loggedin {
    text-align: center;
    padding: 40px 32px;
}

/* ── Header ──────────────────────────────────────────────── */
.vb-auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.vb-auth-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: hsla(170, 80%, 50%, 0.1);
    border: 1px solid hsla(170, 80%, 50%, 0.3);
    color: var(--vb-cyan);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.vb-auth-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--vb-text);
    font-family: var(--vb-font-mono);
    letter-spacing: 0.02em;
}

.vb-auth-subtitle {
    font-size: 13px;
    color: var(--vb-text-muted);
    margin: 0;
}

/* ── Form fields ─────────────────────────────────────────── */
.vb-auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.vb-auth-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--vb-text);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vb-auth-field input[type="text"],
.vb-auth-field input[type="email"],
.vb-auth-field input[type="password"] {
    width: 100%;
    background: var(--vb-bg-input);
    border: 1px solid var(--vb-border);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    color: var(--vb-text);
    font-family: var(--vb-font-mono);
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}

.vb-auth-field input:focus {
    outline: none;
    border-color: var(--vb-cyan);
    box-shadow: 0 0 0 3px hsla(170, 80%, 50%, 0.15);
}

.vb-auth-field input::placeholder {
    color: var(--vb-text-muted);
    opacity: 0.6;
}

/* ── Password reveal ─────────────────────────────────────── */
.vb-auth-password-wrap {
    position: relative;
    display: block;
}

.vb-auth-password-wrap input {
    padding-right: 44px !important;
}

.vb-auth-reveal {
    position: absolute !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    border: none !important;
    color: hsl(215, 15%, 60%) !important;
    cursor: pointer;
    padding: 8px !important;
    margin: 0 !important;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, background 0.15s;
    box-shadow: none !important;
    line-height: 1 !important;
}

.vb-auth-reveal:hover {
    color: hsl(215, 15%, 85%) !important;
    background: hsla(215, 15%, 50%, 0.12) !important;
}

/* ── Password strength bar ───────────────────────────────── */
.vb-auth-strength {
    height: 3px;
    background: var(--vb-border);
    border-radius: 2px;
    margin-top: 6px;
    overflow: hidden;
}

.vb-auth-strength-bar {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--vb-danger);
    transition: width 0.3s, background 0.3s;
}

.vb-auth-strength-bar.weak   { width: 25%; background: var(--vb-danger); }
.vb-auth-strength-bar.medium { width: 50%; background: var(--vb-warning); }
.vb-auth-strength-bar.good   { width: 75%; background: hsl(70, 70%, 50%); }
.vb-auth-strength-bar.strong { width: 100%; background: var(--vb-success); }

/* ── Checkbox ────────────────────────────────────────────── */
.vb-auth-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.vb-auth-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
    cursor: pointer;
    flex-wrap: nowrap;
}

.vb-auth-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    margin-top: 1px;
    accent-color: var(--vb-cyan);
    cursor: pointer;
    flex-shrink: 0;
}

.vb-auth-checkbox span {
    font-size: 13px;
    color: var(--vb-text-muted);
    line-height: 1.5;
    flex: 1;
    min-width: 0;
}

.vb-auth-card .vb-auth-checkbox a,
.vb-auth-checkbox span a {
    color: hsl(48, 95%, 55%) !important;
    text-decoration: none !important;
    display: inline !important;
    font-weight: inherit !important;
    width: auto !important;
    float: none !important;
    clear: none !important;
}

.vb-auth-card .vb-auth-checkbox a:hover,
.vb-auth-checkbox span a:hover {
    text-decoration: underline !important;
}

/* ── Remember + forgot row ───────────────────────────────── */
.vb-auth-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.vb-auth-link {
    font-size: 13px;
    color: var(--vb-cyan);
    text-decoration: none;
}

.vb-auth-link:hover {
    text-decoration: underline;
}

/* ── Submit button ───────────────────────────────────────── */
.vb-auth-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: max-content !important;
    max-width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
    align-self: center !important;
    padding: 14px 36px !important;
    border: 1px solid var(--vb-border-hl);
    border-radius: 10px;
    background: transparent;
    color: var(--vb-text);
    font-size: 14px;
    font-weight: 700;
    font-family: var(--vb-font-mono);
    line-height: 1 !important;
    letter-spacing: 0.03em;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.15s;
    box-sizing: border-box;
    min-height: 0 !important;
}

.vb-auth-btn--primary {
    background: transparent !important;
    color: hsl(48, 95%, 55%) !important;
    border-color: hsl(48, 95%, 55%) !important;
}

.vb-auth-btn--primary:hover {
    background: hsl(48, 95%, 55%) !important;
    color: hsl(220, 25%, 10%) !important;
    border-color: hsl(48, 95%, 55%) !important;
    text-decoration: none;
}

.vb-auth-btn.is-loading {
    color: transparent !important;
    pointer-events: none;
    position: relative;
}

.vb-auth-btn.is-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    margin-left: -9px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: vb-auth-spin 0.6s linear infinite;
    color: hsl(220, 25%, 10%);
}

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

/* ── Divider ─────────────────────────────────────────────── */
.vb-auth-divider {
    position: relative;
    text-align: center;
    margin: 4px 0;
    color: var(--vb-text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.vb-auth-divider::before,
.vb-auth-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: calc(50% - 20px);
    height: 1px;
    background: var(--vb-border);
}

.vb-auth-divider::before { left: 0; }
.vb-auth-divider::after  { right: 0; }

.vb-auth-divider span {
    background: var(--vb-bg-card);
    padding: 0 8px;
    position: relative;
}

/* ── Alt link ────────────────────────────────────────────── */
.vb-auth-alt {
    text-align: center;
    font-size: 13px;
    color: var(--vb-text-muted);
}

.vb-auth-alt a {
    color: var(--vb-cyan);
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
}

.vb-auth-alt a:hover {
    text-decoration: underline;
}

/* ── Error / success messages ────────────────────────────── */
.vb-auth-error,
.vb-auth-success {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
}

.vb-auth-error {
    background: hsla(0, 70%, 55%, 0.1);
    border: 1px solid hsla(0, 70%, 55%, 0.3);
    color: hsl(0, 70%, 70%);
}

.vb-auth-success {
    background: hsla(145, 65%, 52%, 0.1);
    border: 1px solid hsla(145, 65%, 52%, 0.3);
    color: hsl(145, 65%, 65%);
}

/* ── Hidden ──────────────────────────────────────────────── */
.vb-auth-form [hidden] {
    display: none !important;
}
