/* ===============================
   RESET BÁSICO
================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===============================
   FUNDO DA PÁGINA
================================ */
body {
    min-height: 100vh;
    background: radial-gradient(circle at top, #1a1a24, #0b0b0f 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

/* ===============================
   CONTAINER / FORM (UNIFICADO)
================================ */
.auth-container,
.auth-form {
    width: 100%;
    max-width: 420px;
    background: rgba(20, 20, 30, 0.95);
    border-radius: 16px;
    padding: 35px 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    animation: fadeUp 0.6s ease;
    position: relative;
}

/* ===============================
   ANIMAÇÃO ENTRADA
================================ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===============================
   TÍTULO
================================ */
.auth-container h2,
.auth-form h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 26px;
    font-weight: 700;
    color: #ff2d95;
}

/* ===============================
   INPUTS
================================ */
.auth-container input,
.auth-form input {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 16px;
    border-radius: 10px;
    border: 1px solid #2c2c3a;
    background: #111118;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.auth-container input::placeholder,
.auth-form input::placeholder {
    color: #888;
}

.auth-container input:focus,
.auth-form input:focus {
    outline: none;
    border-color: #ff2d95;
    box-shadow: 0 0 0 2px rgba(255, 45, 149, 0.25);
    background: #0f0f15;
}

/* ===============================
   BOTÃO PRINCIPAL
================================ */
.auth-container button,
.auth-form button {
    width: 100%;
    padding: 14px;
    margin-top: 5px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(135deg, #ff2d95, #ff5bbd);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-container button:hover,
.auth-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 45, 149, 0.4);
}

/* ===============================
   RODAPÉ / LINKS
================================ */
.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #ccc;
}

.auth-footer a {
    color: #ff2d95;
    text-decoration: none;
    font-weight: 600;
    margin: 0 6px;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ===============================
   MENSAGEM DE ERRO (REGISTER)
================================ */
.auth-error {
    position: absolute;
    top: -55px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff2d95;
    color: #fff;
    padding: 12px 22px;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    animation: shake 0.4s ease;
    text-align: center;
    white-space: nowrap;
}

/* ===============================
   MENSAGEM DE ERRO (LOGIN)
================================ */
.error {
    background: #ff2d95;
    padding: 12px 18px;
    border-radius: 25px;
    text-align: center;
    font-weight: 600;
    margin-bottom: 20px;
    animation: shake 0.4s ease;
}

/* ===============================
   ANIMAÇÃO ERRO
================================ */
@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-5px);
    }

    100% {
        transform: translateX(0);
    }
}

/* ===============================
   RESPONSIVO
================================ */
@media (max-width: 480px) {

    .auth-container,
    .auth-form {
        padding: 30px 22px;
    }

    .auth-container h2,
    .auth-form h2 {
        font-size: 22px;
    }
}

/* ===============================
   AÇÕES (BOTÕES LINK)
================================ */
.auth-actions {
    display: flex;
    gap: 14px;
    margin-top: 18px;
}

/* BASE BOTÃO */
.auth-actions .btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 0;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* BOTÃO PRINCIPAL */
.auth-actions .btn-primary {
    background: linear-gradient(135deg, #ff2d95, #ff5bbd);
    color: #fff;
    box-shadow: 0 8px 20px rgba(255, 45, 149, 0.35);
}

.auth-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(255, 45, 149, 0.45);
}

/* BOTÃO SECUNDÁRIO */
.auth-actions .btn-secondary {
    background: transparent;
    color: #ff2d95;
    border: 1px solid #ff2d95;
}

.auth-actions .btn-secondary:hover {
    background: rgba(255, 45, 149, 0.08);
    transform: translateY(-2px);
}

/* ===============================
   RESPONSIVO
================================ */
@media (max-width: 480px) {
    .auth-actions {
        flex-direction: column;
    }
}