/* --- Reset Básico e Configurações Globais --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background: linear-gradient(135deg, #00A6ED, #003D64);
    background-size: cover;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* --- Card de Autenticação Principal --- */
.auth-card {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 450px;
    text-align: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* --- Logo e Títulos --- */
.logo-container {
    margin-bottom: 20px;
}

.logo-container img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}

.logo-container h1 {
    color: #003D64;
    font-size: 24px;
    margin-bottom: 10px;
}

.logo-container p {
    color: #555;
    font-size: 15px;
    line-height: 1.5;
}

/* --- Mensagens --- */
.success-message {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 14px;
}

.error-message {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 14px;
}

/* --- Grupos de Input --- */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    transition: color 0.3s ease;
}

.input-group input {
    width: 100%;
    height: 50px;
    border-radius: 10px;
    border: 1px solid #ddd;
    outline: none;
    padding: 0 20px 0 50px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-group input:focus {
    border-color: #00A6ED;
    box-shadow: 0 0 0 3px rgba(0, 166, 237, 0.2);
}

.input-group input:focus + i, .input-group:focus-within > i {
    color: #00A6ED;
}

/* --- Botão de Envio --- */
.submit-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background-color: #FFA500;
    color: white;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.submit-btn:hover {
    background-color: #e69500;
    transform: translateY(-2px);
}

/* --- Links Base --- */
.back-link {
    display: inline-block;
    margin-top: 20px;
    color: #555;
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    color: #003D64;
    text-decoration: underline;
}

/* --- Responsividade --- */
@media (max-width: 500px) {
    .auth-card {
        padding: 25px;
    }

    .logo-container h1 {
        font-size: 20px;
    }
}
