:root {
    --primary-color: #0d253f;
    --secondary-color: #01b4e4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    /* Imagem de fundo temática - você pode trocar o link por uma imagem sua */
    background-image: linear-gradient(rgba(13, 37, 63, 0.7), rgba(13, 37, 63, 0.7)), url('https://images.unsplash.com/photo-1560493676-04071c5f467b?q=80&w=1974&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-box {
    width: 380px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    /* Fundo semi-transparente */
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    /* Efeito de vidro fosco */
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header i {
    font-size: 3rem;
    color: var(--secondary-color);
}

.login-header h2 {
    margin: 10px 0 5px;
    font-size: 2rem;
}

.login-header p {
    font-size: 0.9rem;
    color: #ccc;
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group .fa-solid {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #ccc;
}

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    /* Espaço para o ícone */
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    outline: none;
    color: white;
    font-size: 1rem;
}

.input-group input::placeholder {
    color: #ddd;
}

.btn-login {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    background-color: var(--secondary-color);
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-login:hover {
    background-color: #02a1c9;
}

.error-message {
    margin-top: 15px;
    text-align: center;
    color: #ffcdd2;
    font-weight: 500;
}

/* =============================================== */
/* ESTILO PARA O LINK DE TROCA DE LOGIN          */
/* =============================================== */

.login-switch {
    margin-top: 30px;
    padding-top: 20px;
    /* Usa uma borda branca semi-transparente para combinar com o design */
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.login-switch a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-switch a:hover {
    color: var(--secondary-color);
}

.login-switch a i {
    margin-right: 8px;
}

/* Animações de entrada */
.login-box {
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Efeitos nos inputs */
.input-group input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 10px rgba(1, 180, 228, 0.5);
    transition: all 0.3s ease;
}

/* Botão com gradiente animado */
.btn-login {
    background: linear-gradient(45deg, var(--secondary-color), #02a1c9);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Hover no link de troca */
.login-switch a:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}