/* --- Reset Básico e Configurações Globais --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    /* Gradiente mais suave e centralizado */
    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 Login Principal --- */
.login-card {
    background-color: rgba(255, 255, 255, 0.95); /* Fundo branco semi-transparente */
    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); /* Efeito de vidro fosco */
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* --- Logo e Títulos --- */
.logo-container {
    margin-bottom: 30px;
}

.logo-container img {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
}

.logo-container h1 {
    color: #003D64;
    font-size: 28px;
    margin-bottom: 5px;
}

.logo-container p {
    color: #555;
    font-size: 16px;
}

/* --- Grupos de Input (Campo + Ícone) --- */
.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; /* Espaço para o ícone à esquerda */
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Feedback visual ao focar no campo */
.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 Ver Senha --- */
.toggle-password {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #aaa;
}

/* --- 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); /* Efeito de elevação */
}

/* --- Link para Cadastro --- */
.cadastro-link {
    margin-top: 25px;
    color: #555;
}

.cadastro-link a {
    color: #003D64;
    text-decoration: none;
    font-weight: 600;
}

.cadastro-link a:hover {
    text-decoration: underline;
}

.home-link {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
}

.home-link a {
    color: #6c757d; 
    text-decoration: none;
    transition: color 0.3s ease;
}

.home-link a:hover {
    color: #007bff;
    text-decoration: underline;
}

.home-link a i {
    margin-right: 5px;
}


/* --- Responsividade para Celulares --- */
@media (max-width: 500px) {
    .login-card {
        padding: 25px;
    }

    .logo-container h1 {
        font-size: 24px;
    }
}