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

:root {
    --bg:     #0f0f0f;
    --surface:#1a1a1a;
    --accent: #ff6500;
    --text:   #ebebeb;
    --muted:  #888;
    --border: #333;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background: #000;
    height: 58px;
    display: flex;
    align-items: center;
    padding: 0 5%;
    border-bottom: 2px solid var(--accent);
}
header a {
    font-size: 1.7em;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
    letter-spacing: -1px;
}
header a span { color: var(--accent); }

main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

#form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 36px 32px;
    width: 100%;
    max-width: 420px;
}

#login {
    font-size: 1.8em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 28px;
    color: var(--text);
}

#form label {
    display: block;
    font-size: 0.85em;
    color: var(--muted);
    margin-bottom: 5px;
}

.campos {
    width: 100%;
    padding: 10px 12px;
    background: #111;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 0.95em;
    margin-bottom: 18px;
    outline: none;
    transition: border-color .2s;
}
.campos:focus { border-color: var(--accent); }

#button {
    width: 100%;
    height: 44px;
    background: var(--accent);
    color: #fff;
    font-size: 1em;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background .2s;
}
#button:hover { background: #ff8533; }

.captcha-box {
    background: #111;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.captcha-box > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

#captcha-img {
    display: block;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid var(--border);
    height: 54px;
    width: 180px;
}

#captcha-reload {
    background: none;
    border: 1px solid var(--border);
    color: var(--muted);
    border-radius: 6px;
    width: 32px;
    height: 32px;
    font-size: 1.1em;
    cursor: pointer;
    transition: color .2s, border-color .2s;
    line-height: 1;
    flex-shrink: 0;
}
#captcha-reload:hover { color: var(--accent); border-color: var(--accent); }

.captcha-input {
    margin-bottom: 0;
    letter-spacing: 3px;
    font-size: 1em;
    text-transform: uppercase;
}
.captcha-input::placeholder {
    letter-spacing: normal;
    font-size: 0.78em;
    text-transform: none;
}

.erro {
    background: rgba(255,50,50,.1);
    border: 1px solid rgba(255,50,50,.4);
    color: #ff6b6b;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 18px;
    font-size: 0.85em;
}

#toCadastro {
    text-align: center;
    margin-top: 20px;
    font-size: 0.85em;
    color: var(--muted);
}
#cadastre-se { color: var(--accent); text-decoration: none; }
#cadastre-se:hover { text-decoration: underline; }

@media (max-width: 480px) {
    #form { padding: 24px 18px; }
    #login { font-size: 1.5em; }
}
