* { box-sizing: border-box; }

:root {
    --glass: rgba(255, 255, 255, 0.07);
    --glass-border: rgba(255, 255, 255, 0.16);
    --text: #f2f2f7;
    --text-dim: rgba(242, 242, 247, 0.65);
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    background: radial-gradient(circle at 15% 20%, #3a2b7c 0%, transparent 45%),
                radial-gradient(circle at 85% 15%, #7c2b6b 0%, transparent 40%),
                radial-gradient(circle at 50% 90%, #1a3f6b 0%, transparent 45%),
                linear-gradient(135deg, #0f0c29, #24243e 50%, #302b63);
    background-attachment: fixed;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

.wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeUp 0.6s ease both;
}

.ball {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #ffe37a, #ff9f43 45%, #d63384 85%);
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.06),
                0 20px 40px -10px rgba(214, 51, 132, 0.55),
                inset -8px -10px 18px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 18px;
    animation: float 3.2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

h1 {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 26px;
    letter-spacing: 0.3px;
    text-align: center;
}

form, .painel-sucesso {
    width: 100%;
    max-width: 340px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(14px);
    padding: 32px 28px;
    border-radius: 20px;
    box-shadow: 0 24px 48px -18px rgba(0, 0, 0, 0.6);
    text-align: center;
}

input[type="email"], input[type="password"] {
    width: 100%;
    padding: 13px 14px;
    margin-bottom: 14px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

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

.dica-campo {
    margin: -8px 0 14px;
    font-size: 12px;
    color: var(--text-dim);
    text-align: left;
    line-height: 1.4;
}

input:focus {
    border-color: #7367f0;
    background: rgba(255, 255, 255, 0.1);
}

button, .btn-entrar {
    display: inline-block;
    width: 100%;
    padding: 13px;
    background: linear-gradient(90deg, #7367f0, #d63384);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    text-decoration: none;
    transition: filter 0.2s ease, transform 0.15s ease;
    margin-top: 6px;
}

button:hover, .btn-entrar:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.erro {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffd6d6;
    background: rgba(214, 51, 51, 0.18);
    border: 1px solid rgba(255, 120, 120, 0.35);
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13.5px;
    margin-bottom: 18px;
    text-align: left;
}

.painel-sucesso p {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--text-dim);
    margin: 0 0 20px;
}

.rodape-links {
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-dim);
}

.rodape-links a {
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
}

.rodape-links a:hover { text-decoration: underline; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
