/**
 * 4Circle Auth Pages — shared styles
 * Loaded by: 4circle-login.blade.php, 4circle-forgot-password.blade.php,
 *            4circle-reset-password.blade.php
 */

/* ── Base ─────────────────────────────────────────────────────────────── */
body {
    background-color: #0c1324;
    color: #dce1fb;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow: hidden;
}

/* ── Background: dot grid ─────────────────────────────────────────────── */
.node-bg {
    background-color: #0c1324;
    background-image: radial-gradient(circle at 2px 2px, rgba(0,251,251,0.05) 1px, transparent 0);
    background-size: 40px 40px;
}

/* ── Glassmorphism card (forgot / reset) ──────────────────────────────── */
.glass-panel {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-top-color: rgba(255,255,255,0.1);
    border-left-color: rgba(255,255,255,0.1);
}

/* ── Glass card do login (mais gold) ─────────────────────────────────── */
.login-glass {
    background: rgba(30, 41, 59, 0.45);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 215, 0, 0.12);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

/* ── Scan line animada no topo do card ───────────────────────────────── */
.scan-line {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, #00fbfb, transparent);
    animation: scan 4s linear infinite;
    opacity: 0.3;
    pointer-events: none;
}
@keyframes scan {
    0%   { top: 0%; }
    100% { top: 100%; }
}

/* ── Sheen (reflexo diagonal no card) ────────────────────────────────── */
.sheen-overlay {
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255,255,255,0.04) 45%,
        rgba(255,255,255,0.09) 50%,
        rgba(255,255,255,0.04) 55%,
        transparent 60%
    );
    pointer-events: none;
}

/* ── Aura glow ao redor do card ──────────────────────────────────────── */
.card-aura {
    background: #ffd700;
    filter: blur(60px);
    opacity: 0.15;
    transition: opacity 0.7s ease;
}
.card-wrapper:hover .card-aura { opacity: 0.25; }

/* ── Ícone com glow dourado ──────────────────────────────────────────── */
.glow-key {
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
}

/* ── Neumorphic convex (botões elevados) ─────────────────────────────── */
.neumorphic-convex {
    box-shadow: 6px 6px 12px #010409, -4px -4px 10px #2D3A4F;
}

/* ── Neumorphic inset (inputs login) ─────────────────────────────────── */
.neumorphic-inset {
    box-shadow: inset 4px 4px 8px #010409, inset -4px -4px 8px #2D3A4F;
}

/* ── Input flutuante — login (field-wrap) ────────────────────────────── */
.field-wrap { position: relative; }
.field-wrap input {
    width: 100%;
    background: rgba(7, 13, 31, 0.5);
    border: none;
    border-radius: 0.5rem;
    padding: 24px 48px 8px 16px;
    color: #dce1fb;
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    letter-spacing: 0.05em;
    outline: none;
    transition: box-shadow 0.2s;
}
.field-wrap input:focus {
    box-shadow: inset 4px 4px 8px #010409, inset -4px -4px 8px #2D3A4F,
                0 0 0 1px #00fbfb;
}
.field-wrap input:not(:placeholder-shown) + label,
.field-wrap input:focus + label {
    top: 8px;
    font-size: 11px;
    color: #00fbfb;
}
.field-wrap label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Sora', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #d0c6ab;
    pointer-events: none;
    transition: top 0.2s, font-size 0.2s, color 0.2s;
}
.field-wrap .field-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(208, 198, 171, 0.4);
    pointer-events: none;
}

/* ── Input estilo Stitch — forgot/reset (input-group + neumorphic-input) */
.input-group { position: relative; }
.input-group .floating-label {
    position: absolute;
    top: -9px; left: 16px;
    padding: 0 8px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    font-family: 'Sora', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #00fbfb;
    text-transform: uppercase;
    z-index: 10;
    border-radius: 2px;
}
.neumorphic-input {
    display: flex;
    align-items: center;
    padding: 16px;
    border-radius: 0.5rem;
    background: #0c1324;
    box-shadow: inset 2px 2px 5px rgba(1,4,9,0.8),
                inset -1px -1px 3px rgba(45,58,79,0.3);
    border: 1px solid rgba(0,251,251,0.1);
    transition: all 0.3s ease;
}
.neumorphic-input:focus-within {
    border-color: #00fbfb;
    box-shadow: 0 0 15px rgba(0,251,251,0.2),
                inset 2px 2px 5px rgba(1,4,9,0.8);
    transform: scale(1.02);
}
.neumorphic-input .input-icon {
    color: #d0c6ab;
    margin-right: 12px;
    flex-shrink: 0;
    font-size: 20px;
}
.neumorphic-input input {
    background: transparent;
    border: none;
    outline: none;
    width: 100%;
    color: #dce1fb;
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    letter-spacing: 0.05em;
}
.neumorphic-input input::placeholder { color: rgba(46,52,71,0.9); }
.neumorphic-input input:disabled     { opacity: 0.5; cursor: not-allowed; }

/* ── Botão principal — login ─────────────────────────────────────────── */
.btn-primary {
    width: 100%;
    height: 56px;
    border: none;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #ffd700 0%, #e9c400 100%);
    color: #3a3000;
    font-family: 'Sora', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 6px 6px 12px #010409, -4px -4px 10px #2D3A4F;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-primary:hover  { transform: scale(1.02); }
.btn-primary:active { transform: scale(0.97); }
.btn-primary .inner-glow {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.2);
    opacity: 0;
    transition: opacity 0.2s;
}
.btn-primary:hover .inner-glow { opacity: 1; }

/* ── Gold rush gradient — geral ──────────────────────────────────────── */
.gold-rush-gradient {
    background: linear-gradient(135deg, #ffd700 0%, #e9c400 100%);
}

/* ── Botão gold-rush com glow — forgot/reset ─────────────────────────── */
.gold-rush-glow {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #ffd700, #e9c400);
    box-shadow: 0 0 20px rgba(255,215,0,0.4);
    color: #3a3000;
    font-family: 'Sora', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: box-shadow 0.3s, transform 0.2s;
}
.gold-rush-glow:hover {
    box-shadow: 0 0 35px rgba(255,215,0,0.6);
    transform: translateY(-1px);
}
.gold-rush-glow:active { transform: translateY(0) scale(0.98); }
.gold-rush-glow .btn-arrow,
.gold-rush-glow .btn-icon {
    font-size: 18px;
    transition: transform 0.2s;
}
.gold-rush-glow:hover .btn-arrow,
.gold-rush-glow:hover .btn-icon { transform: translateX(3px); }

/* ── Link "voltar" ───────────────────────────────────────────────────── */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #d0c6ab;
    text-decoration: none;
    font-family: 'Sora', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.3s;
}
.back-link:hover { color: #00fbfb; }
.back-link .back-arrow {
    font-size: 16px;
    transition: transform 0.2s;
}
.back-link:hover .back-arrow { transform: translateX(-3px); }

/* ── Barra de força de senha (reset) ─────────────────────────────────── */
.strength-bar {
    height: 3px;
    border-radius: 9999px;
    background: rgba(77,71,50,0.3);
    overflow: hidden;
    margin-top: 10px;
}
.strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 9999px;
    transition: width 0.35s ease, background 0.35s ease;
}
.strength-label {
    font-family: 'Sora', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 5px;
    min-height: 14px;
    transition: color 0.3s;
}

/* ── Alert de sucesso (forgot) ───────────────────────────────────────── */
.alert-success {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(6,78,59,0.35);
    border: 1px solid rgba(0,251,251,0.2);
    color: #6ee7b7;
    padding: 16px;
    border-radius: 8px;
    text-align: left;
}
.alert-success .alert-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }

/* ── Alert de erro ───────────────────────────────────────────────────── */
.alert-error {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(147,0,10,0.35);
    border: 1px solid rgba(255,180,171,0.3);
    color: #ffb4ab;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: 'Sora', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

/* ── Tipografia do Stitch ─────────────────────────────────────────────── */
.t-h2 {
    font-family: 'Sora', sans-serif;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
}
.t-label {
    font-family: 'Sora', sans-serif;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.08em;
}
.t-body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;
}
.t-mono {
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* ── Animação dos nós ─────────────────────────────────────────────────── */
@keyframes nodePulse {
    0%, 100% { opacity: 0.4; }
    50%       { opacity: 1.0; }
}
.node-pulse { animation: nodePulse 3s ease-in-out infinite; }

/* ── Checkbox custom (login) ─────────────────────────────────────────── */
.custom-check {
    position: relative; width: 16px; height: 16px;
    background: #23293c;
    border: 1px solid #999077;
    border-radius: 3px;
    flex-shrink: 0;
    cursor: pointer;
    transition: border-color 0.2s;
}
.custom-check:has(input:checked) { border-color: #ffd700; }
.custom-check::after {
    content: '';
    position: absolute;
    top: 2px; left: 5px;
    width: 5px; height: 9px;
    border: 2px solid #ffd700;
    border-top: none; border-left: none;
    transform: rotate(45deg) scale(0);
    transition: transform 0.15s;
}
.custom-check:has(input:checked)::after { transform: rotate(45deg) scale(1); }
