/* ==========================================================================
   WYD ARES — telas de conta (cadastro, login e registro do painel)
   Mesmo tema do site (css/ares.css), com um cartão centralizado.
   ========================================================================== */

:root {
    --bg: #0d0906;
    --bg-2: #140e09;
    --panel: rgba(28, 20, 13, .9);
    --input: rgba(13, 9, 6, .8);
    --line: rgba(196, 146, 74, .22);
    --line-soft: rgba(255, 255, 255, .06);
    --gold: #e8a94f;
    --gold-light: #f6c97a;
    --gold-deep: #c9822f;
    --cream: #f4e6cc;
    --text: #eadbc0;
    --muted: #b3a185;
    --dim: #7f705c;
    --font-title: "Libre Caslon Text", Georgia, "Times New Roman", serif;
    --font-body: "Inter", Arial, sans-serif;
}

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

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 16px;
    color: var(--text);
    font-family: var(--font-body);
    background:
        radial-gradient(900px 600px at 12% 8%, rgba(120, 82, 30, .38), transparent 70%),
        radial-gradient(700px 500px at 88% 40%, rgba(90, 60, 25, .22), transparent 70%),
        radial-gradient(800px 600px at 20% 85%, rgba(80, 52, 20, .2), transparent 70%),
        linear-gradient(180deg, var(--bg-2), var(--bg));
    background-color: var(--bg);
    background-attachment: fixed;
    overflow-x: hidden;
}

/* brasas (criadas por js/ares.js) */
.embers { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ember {
    position: absolute;
    bottom: -10px;
    border-radius: 50%;
    background: #ffd38a;
    box-shadow: 0 0 6px 1px rgba(246, 180, 90, .7);
    opacity: 0;
    animation: rise linear infinite;
}
@keyframes rise {
    0%   { transform: translate(0, 0); opacity: 0; }
    10%  { opacity: .8; }
    90%  { opacity: .5; }
    100% { transform: translate(var(--drift, 30px), -105vh); opacity: 0; }
}

.auth-logo {
    position: relative;
    z-index: 1;
    display: block;
    height: 120px;
    width: auto;
    margin-bottom: 18px;
    filter: drop-shadow(0 0 24px rgba(232, 169, 79, .25)) drop-shadow(0 6px 14px rgba(0, 0, 0, .6));
}

.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    padding: 34px 32px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .55);
}

h1 {
    margin-bottom: 6px;
    text-align: center;
    font-family: var(--font-title);
    font-size: 2rem;
    font-weight: 700;
    color: var(--cream);
}

.subtitle {
    margin-bottom: 26px;
    text-align: center;
    color: var(--muted);
    font-size: .95rem;
}

form { display: flex; flex-direction: column; gap: 18px; }

.form-group { margin: 0; }

label,
.field label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.hint,
.field .hint {
    margin-top: 6px;
    color: var(--dim);
    font-size: .8rem;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 13px 14px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--input);
    color: var(--cream);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color .2s, box-shadow .2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(232, 169, 79, .15);
}

input::placeholder { color: var(--dim); }

.password-wrapper { position: relative; }

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--dim);
    font-size: 18px;
    user-select: none;
}

.password-toggle:hover { color: var(--gold-light); }

.captcha-container {
    display: flex;
    justify-content: center;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--input);
}

.btn {
    width: 100%;
    padding: 14px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    color: #1d1207;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(180deg, var(--gold-light), var(--gold) 55%, var(--gold-deep));
    box-shadow: 0 8px 22px rgba(201, 130, 47, .35), inset 0 1px 0 rgba(255, 255, 255, .35);
    transition: transform .2s, box-shadow .2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(232, 169, 79, .45), inset 0 1px 0 rgba(255, 255, 255, .45);
}

.links,
.register-link,
.login-link {
    margin-top: 20px;
    text-align: center;
    color: var(--dim);
    font-size: .92rem;
}

.links { display: flex; flex-direction: column; gap: 8px; }

.links a,
.register-link a,
.login-link a,
.message a,
.forgot {
    color: var(--gold-light);
    font-weight: 600;
    text-decoration: none;
}

.links a:hover,
.register-link a:hover,
.login-link a:hover,
.message a:hover,
.forgot:hover { text-decoration: underline; }

.alert,
.error {
    padding: 12px 14px;
    margin-bottom: 18px;
    border-radius: 8px;
    font-size: .92rem;
}

.alert-error,
.error {
    color: #ffb4a8;
    background: rgba(122, 22, 22, .35);
    border: 1px solid rgba(220, 80, 60, .5);
}

.alert-success {
    color: #9de6b8;
    background: rgba(20, 70, 40, .4);
    border: 1px solid rgba(74, 222, 128, .4);
}

.message {
    padding: 20px 0;
    text-align: center;
    color: var(--muted);
    line-height: 1.6;
}

.message a { display: inline-block; margin-top: 15px; }

.foot {
    margin-top: 24px;
    text-align: center;
    color: var(--dim);
    font-size: .75rem;
}

/* sucesso do captcha (login) */
.captcha-success { display: flex; align-items: center; justify-content: space-between; color: #9de6b8; margin-bottom: 10px; }
.captcha-success-left,
.captcha-success-right { display: flex; align-items: center; gap: 10px; }
.captcha-success-right { font-size: 12px; }
.captcha-success-right a { color: var(--dim); text-decoration: none; }
.captcha-success-right a:hover { color: var(--gold-light); }
.success-circle {
    width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: #1f9d5c;
    color: #fff;
    font-weight: bold;
}

@media (max-width: 480px) {
    .container { padding: 26px 18px; }
    .auth-logo { height: 96px; }
}

@media (prefers-reduced-motion: reduce) {
    .ember { display: none; }
}
