/* =========================
   VARIÁVEIS IDEATHON
========================= */
:root {
    --body: #fff;
    --black: #000;
    --white: #fff;
    --theme: #384BFF;
    --theme2: #FFA31A;
    --header: #0F0D1D;
    --text: #445375;
    --border: #D4DCFF;
    --border-2: #D4DCED;
    --bg: #F3F7FB;
    --box-shadow: 0px 4px 25px rgba(0, 0, 0, 0.06);
}

/* =========================
   RESET BÁSICO
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, sans-serif;
}

body {
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================
   CONTAINER PRINCIPAL
========================= */
.auth-container {
    background: var(--white);
    width: 100%;
    max-width: 420px;
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--box-shadow);
}

/* =========================
   LOGO
========================= */
.auth-logo {
    text-align: center;
    margin-bottom: 25px;
}

.auth-logo img {
    max-width: 180px;
}

/* =========================
   TÍTULOS
========================= */
.auth-title {
    text-align: center;
    font-size: 26px;
    color: var(--header);
    margin-bottom: 8px;
}

.auth-subtitle {
    text-align: center;
    font-size: 14px;
    color: var(--text);
    margin-bottom: 30px;
}

/* =========================
   FORMULÁRIO
========================= */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-form label {
    font-size: 14px;
    color: var(--header);
    font-weight: 500;
}

.auth-form input {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-size: 14px;
    color: var(--header);
    transition: 0.3s;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--theme);
    box-shadow: 0 0 0 2px rgba(56, 75, 255, 0.15);
}

/* =========================
   BOTÃO PRINCIPAL
========================= */
.auth-btn {
    margin-top: 10px;
    padding: 14px;
    background: linear-gradient(135deg, var(--theme), #5b6bff);
    border: none;
    border-radius: 12px;
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(56, 75, 255, 0.25);
}

/* =========================
   LINKS
========================= */
.auth-links {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.auth-links a {
    color: var(--theme);
    text-decoration: none;
    font-weight: 600;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* =========================
   MENSAGENS
========================= */
.auth-error {
    background: #ffecec;
    color: #c0392b;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    text-align: center;
}

.auth-success {
    background: #e9fff2;
    color: #1e8449;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    text-align: center;
}

/* =========================
   RESPONSIVO
========================= */
@media (max-width: 480px) {
    .auth-container {
        padding: 30px 25px;
    }

    .auth-title {
        font-size: 22px;
    }
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    width: 100%;
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    user-select: none;
    color: var(--text);
}

.toggle-password:hover {
    color: var(--theme);
}