@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Share+Tech+Mono&display=swap');

/* ═══════════════════════════════════════════
   VARIABLES — Style Tron GDA
   ═══════════════════════════════════════════ */
:root {
    --c:     #00F5FF;
    --c2:    #0097A7;
    --c3:    rgba(0,245,255,.08);
    --cg:    #00FF88;
    --cr:    #FF3B5C;
    --co:    #FFB300;
    --bg:    #020A0F;
    --bg2:   #040D13;
    --bg3:   #071520;
    --line:  rgba(0,245,255,.18);
    --muted: rgba(0,245,255,.45);
    --glow:  0 0 8px rgba(0,245,255,.6), 0 0 24px rgba(0,245,255,.2);
    --glow2: 0 0 4px rgba(0,245,255,.4);
    --r:     2px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.tron-body {
    font-family: 'Share Tech Mono', monospace;
    background-color: var(--bg);
    background-image:
        linear-gradient(rgba(0,245,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,245,255,.03) 1px, transparent 1px);
    background-size: 40px 40px;
    color: rgba(0,245,255,.9);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    cursor: crosshair;
    position: relative;
}

body.tron-body::before {
    content: '';
    position: fixed;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 800px; height: 400px;
    background: radial-gradient(ellipse at 50% 0%, rgba(0,245,255,.07) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

code {
    font-family: 'Share Tech Mono', monospace;
    color: var(--c);
    font-size: .85em;
}

/* ═══════════════════════════════════════════
   CURSEUR CIBLE
   ═══════════════════════════════════════════ */
.tron-cursor {
    position: fixed;
    top: 0; left: 0;
    width: 28px; height: 28px;
    pointer-events: none;
    z-index: 9999;
    transition: width .25s cubic-bezier(.34, 1.56, .64, 1),
                height .25s cubic-bezier(.34, 1.56, .64, 1);
    mix-blend-mode: screen;
    will-change: transform;
}

.tron-cursor-corner {
    position: absolute;
    width: 8px; height: 8px;
    border: 1px solid var(--c);
    transition: border-color .2s, box-shadow .2s;
    box-shadow: var(--glow2);
}

.tron-cursor-corner.tl { top: 0;    left: 0;    border-right: none; border-bottom: none; }
.tron-cursor-corner.tr { top: 0;    right: 0;   border-left:  none; border-bottom: none; }
.tron-cursor-corner.bl { bottom: 0; left: 0;    border-right: none; border-top:    none; }
.tron-cursor-corner.br { bottom: 0; right: 0;   border-left:  none; border-top:    none; }

.tron-cursor.hover { width: 36px; height: 36px; }

.tron-cursor.locked {
    width: 56px; height: 56px;
}

.tron-cursor.locked .tron-cursor-corner {
    border-color: var(--co);
    box-shadow: 0 0 8px rgba(255,179,0,.6), 0 0 16px rgba(255,179,0,.2);
}

/* ═══════════════════════════════════════════
   CARD LOGIN
   ═══════════════════════════════════════════ */
.tron-card {
    background: var(--bg3);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 2rem 2.25rem 1.75rem;
    margin: 0 auto;
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}

.tron-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 14px; height: 14px;
    border-top: 2px solid var(--c);
    border-left: 2px solid var(--c);
    box-shadow: var(--glow2);
}

.tron-card::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 14px; height: 14px;
    border-bottom: 2px solid var(--c);
    border-right: 2px solid var(--c);
    box-shadow: var(--glow2);
}

/* ═══════════════════════════════════════════
   HEADER LOGIN
   ═══════════════════════════════════════════ */
.tron-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}

.tron-logo {
    width: 36px; height: 36px;
    border-radius: 4px;
    border: 1px solid var(--c);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c);
    filter: drop-shadow(0 0 6px var(--c));
    flex-shrink: 0;
}

.tron-card h1 {
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    font-weight: 900;
    color: var(--c);
    text-shadow: var(--glow);
    letter-spacing: 3px;
    line-height: 1;
}

.tron-sub {
    font-size: .68rem;
    color: var(--muted);
    letter-spacing: 2px;
    margin-top: 4px;
}

/* ═══════════════════════════════════════════
   CHAMPS
   ═══════════════════════════════════════════ */
.tron-field {
    margin-bottom: 1rem;
}

.tron-field label {
    display: block;
    font-size: .68rem;
    color: var(--muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 6px;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
}

.tron-field input {
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--r);
    border: 1px solid rgba(0,245,255,.25);
    background: rgba(0,0,0,.4);
    color: var(--c);
    font-family: 'Share Tech Mono', monospace;
    font-size: .9rem;
    letter-spacing: 1px;
    transition: border-color .2s, box-shadow .2s;
}

.tron-field input:focus {
    outline: none;
    border-color: var(--c);
    box-shadow: var(--glow2);
}

.tron-field input::placeholder {
    color: rgba(0,245,255,.25);
}

/* ═══════════════════════════════════════════
   BOUTON
   ═══════════════════════════════════════════ */
.tron-btn {
    width: 100%;
    justify-content: center;
    padding: 1rem;
    font-size: .9rem;
    border: 1px solid var(--c);
    border-radius: var(--r);
    background: linear-gradient(90deg, transparent 0%, rgba(0,245,255,.06) 50%, transparent 100%);
    color: var(--c);
    font-family: 'Share Tech Mono', monospace;
    font-weight: 700;
    letter-spacing: 3px;
    cursor: pointer;
    transition: box-shadow .25s, transform .15s, background .25s;
    margin-top: .5rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tron-btn::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--r);
    background: linear-gradient(90deg, var(--c), transparent, var(--c));
    background-size: 200% 100%;
    animation: scanline 3s linear infinite;
    opacity: .35;
    pointer-events: none;
    z-index: 0;
}

@keyframes scanline {
    0%   { background-position:  200% 0; }
    100% { background-position: -200% 0; }
}

.tron-btn-text { position: relative; z-index: 1; }

.tron-btn:hover {
    box-shadow: var(--glow);
    transform: translateY(-1px);
}

.tron-btn:active { transform: translateY(0); }

/* ═══════════════════════════════════════════
   ALERTES
   ═══════════════════════════════════════════ */
.tron-alert {
    padding: 10px 14px;
    margin-bottom: 1.25rem;
    border-radius: var(--r);
    border: 1px solid;
    font-size: .78rem;
    letter-spacing: .5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tron-alert-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px; height: 18px;
    border: 1px solid;
    border-radius: var(--r);
    font-weight: 700;
    font-size: .7rem;
    flex-shrink: 0;
    font-family: 'Orbitron', monospace;
}

.tron-alert-error {
    background: rgba(255,59,92,.05);
    border-color: rgba(255,59,92,.4);
    color: var(--cr);
}

.tron-alert-info {
    background: rgba(0,245,255,.04);
    border-color: rgba(0,245,255,.3);
    color: var(--c);
}

/* ═══════════════════════════════════════════
   HINT
   ═══════════════════════════════════════════ */
.tron-hint {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    font-size: .72rem;
    color: var(--muted);
    text-align: center;
    line-height: 1.7;
    letter-spacing: 1px;
}

.tron-hint code {
    background: rgba(0,245,255,.05);
    border: 1px solid rgba(0,245,255,.15);
    padding: 1px 8px;
    border-radius: var(--r);
    font-size: .8em;
}

.tron-hint strong {
    color: var(--co);
    font-weight: 700;
    letter-spacing: 1.5px;
}

/* ═══════════════════════════════════════════
   reCAPTCHA NOTICE
   ═══════════════════════════════════════════ */
.tron-recaptcha-notice {
    margin-top: 1rem;
    font-size: .62rem;
    color: rgba(0,245,255,.3);
    text-align: center;
    letter-spacing: 1px;
}

.tron-recaptcha-notice a {
    color: var(--muted);
    text-decoration: none;
}

.tron-recaptcha-notice a:hover {
    color: var(--c);
}

/*.grecaptcha-badge { visibility: hidden; }*/

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 480px) {
    .tron-card { padding: 1.5rem 1.25rem; }
    .tron-card h1 { font-size: .9rem; }
    .tron-cursor { display: none !important; }
    body.tron-body { cursor: auto; }
}

/* ═══════════════════════════════════════════
   GOOGLE RECAPTCHA — Login admin
   ═══════════════════════════════════════════ */
.tron-recaptcha {
    display: flex;
    justify-content: center;
    margin: 1rem 0 1.2rem;
    padding: .8rem;
    border: 1px solid rgba(0,245,255,.22);
    background: rgba(0,245,255,.035);
    box-shadow: inset 0 0 18px rgba(0,245,255,.05);
}

.tron-recaptcha .g-recaptcha {
    filter: drop-shadow(0 0 8px rgba(0,245,255,.22));
}

@media (max-width: 380px) {
    .tron-recaptcha .g-recaptcha {
        transform: scale(.88);
        transform-origin: center;
    }
}


.tron-recaptcha-note {
  margin: 6px 0 18px;
  font-family: "Share Tech Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0, 245, 255, 0.72);
}

.tron-btn[disabled] {
  opacity: 0.65;
  cursor: wait;
}
