/* Reset e estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    background: #0f172b;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Container principal */
.container {
    width: 100%;
    max-width: 400px;
    padding: 40px 20px;
}

/* Cabeçalho */
h1 {
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 30px;
    font-size: 32px;
    text-align: center;
    letter-spacing: -0.5px;
}

/* Formulário */
form {
    background: #1e293b;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #ffffff;
    font-size: 14px;
}

input {
    width: 100%;
    height: 50px;
    padding: 10px 15px;
    border: 2px solid #2d3748;
    background: #1a202c;
    color: #ffffff;
    border-radius: 10px;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
    background: #2d3748;
}

/* Botão */
button {
    width: 100%;
    height: 50px;
    background: #3b82f6;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

button:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

button:active {
    transform: translateY(1px);
}

/* Links */
.links-container {
    margin-top: 20px;
    text-align: center;
}

a {
    color: #60a5fa;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

a:hover {
    color: #93c5fd;
}

/* Separador de links */
.links-container a + a {
    margin-left: 15px;
}

/* Mensagem de erro */
.error-message {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
}

/* Animação de loading no botão */
button.loading {
    position: relative;
    color: transparent;
}

button.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsividade */
@media (max-width: 480px) {
    .container {
        padding: 20px;
    }

    form {
        padding: 20px;
    }

    h1 {
        font-size: 24px;
    }

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

    .links-container a + a {
        margin-left: 0;
    }
}

/* Placeholder personalizado */
::placeholder {
    color: #4a5568;
}

/* Autofill styles */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff;
    -webkit-box-shadow: 0 0 0px 1000px #1a202c inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* Adicionando apenas os estilos necessários para os alertas */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 10px;
    text-align: center;
    font-size: 14px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
}