/* Extraído de apps/accounts/templates/accounts/login.html */
@font-face {
    font-family: 'Belleza';
    src: url("../../../documentos/fonts/Belleza.012818f01d4e.ttf") format('truetype');
    font-weight: normal;
    font-style: normal;
}

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

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0f0d;
    overflow: hidden;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Animated WebGL background (Aurora Drift). Falls back to the static
   image below if WebGL is unavailable or prefers-reduced-motion. */
#bg-gl {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    display: block;
    z-index: 0;
}

/* Static fallback image with overlay (shown behind the canvas; visible
   only when the canvas is hidden/removed). */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: url("../../../accounts/background.fc2b3d5c4455.png") no-repeat center center;
    background-size: cover;
    opacity: 0.4;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

/* Clock — centered at the top, above the login card */
.clock {
    position: fixed;
    top: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.85;
}

.clock .time {
    font-size: 2.6rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.04em;
    color: #e8ecf4;
    font-variant-numeric: tabular-nums;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

.clock .date {
    font-size: 0.72rem;
    color: rgba(232, 236, 244, 0.45);
    margin-top: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
}

@media (max-width: 480px) {
    .clock { top: 22px; }
    .clock .time { font-size: 2rem; }
}

.login-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 420px;
    padding: 1.5rem;
}

@media (max-width: 480px) {
    .login-wrapper { padding: 0.75rem; }
    .login-card { padding: 2rem 1.5rem 1.5rem; }
}

.login-card {
    background: rgba(10, 18, 15, 0.75);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border: 1px solid rgba(78, 204, 163, 0.15);
    border-radius: 1.25rem;
    padding: 3rem 2.5rem 2.5rem;
    box-shadow:
        0 0 60px rgba(0, 200, 150, 0.06),
        0 25px 50px rgba(0, 0, 0, 0.4);
}

/* Logo / Title */
.login-brand {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-brand .icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(78, 204, 163, 0.2), rgba(30, 120, 100, 0.3));
    border: 1px solid rgba(78, 204, 163, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: #4ecca3;
}

.login-brand h1 {
    font-family: 'Belleza', sans-serif;
    font-size: 2rem;
    font-weight: normal;
    letter-spacing: 0.15em;
    color: #e0e0e0;
    margin: 0;
    text-transform: uppercase;
}

.login-brand .subtitle {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.08em;
    margin-top: 0.35rem;
}

/* Form */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group .input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(78, 204, 163, 0.5);
    font-size: 1.1rem;
    pointer-events: none;
    transition: color 0.2s;
}

.form-group .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: #e0e0e0;
    font-size: 1.05rem;
    padding: 0.9rem 1rem 0.9rem 2.8rem;
    transition: all 0.25s ease;
}

.form-group .form-control::placeholder {
    color: rgba(255,255,255,0.3);
}

.form-group .form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(78, 204, 163, 0.5);
    box-shadow: 0 0 0 3px rgba(78, 204, 163, 0.1);
    outline: none;
}

.form-group:focus-within .input-icon {
    color: #4ecca3;
}

/* Button */
.btn-login {
    width: 100%;
    padding: 0.85rem;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    border: none;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #3ba58a, #2d8a73);
    color: #fff;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 0.5rem;
}

.btn-login:hover {
    background: linear-gradient(135deg, #4ecca3, #3ba58a);
    box-shadow: 0 4px 20px rgba(78, 204, 163, 0.25);
    transform: translateY(-1px);
}

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

/* Alert */
.alert-login {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #f0a0a8;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* ── Antes em style="" no template ── */
/* a.classe empata com o a:hover do Bootstrap e vence pela ordem: a cor não muda no hover, como no inline */
.login-card a.login-link-senha { color: rgba(255,255,255,0.4); }
.login-card a.login-link-privacidade { color: rgba(255,255,255,0.25); }
