/* Reset box-sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #a1c4fd, #c2e9fb);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

/* Animação de entrada */
@keyframes fadeSlideIn {
    0% { opacity: 0; transform: translateY(-20px);}
    100% { opacity: 1; transform: translateY(0);}
}

/* Container glassmorphism */
.login-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 40px 30px;
    width: 360px;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    animation: fadeSlideIn 0.6s ease forwards;
}

/* Título */
h2 {
    margin-bottom: 30px;
    color: #fff;
    font-weight: 700;
    font-size: 28px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.3);
}

/* Inputs glass */
.form-group {
    position: relative;
    margin-bottom: 22px;
}

.form-group input {
    width: 100%;
    padding: 14px 40px 14px 12px;
    border: none;
    border-radius: 15px;
    font-size: 15px;
    outline: none;
    background-color: #d6e9ff;
    color: #000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

/* Autofill corrigido */
input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px #d6e9ff inset;
    -webkit-text-fill-color: #000;
    transition: background-color 5000s ease-in-out 0s;
}
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px #b3d1ff inset;
    -webkit-text-fill-color: #000;
}

/* Placeholder animado */
.form-group label {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(0,0,0,0.5);
    font-size: 15px;
    pointer-events: none;
    transition: 0.3s;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
    top: -10px;
    left: 12px;
    font-size: 12px;
    color: #0072ff;
    background: transparent;
    padding: 0;
}

/* Ícones */
.form-group i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 18px;
    transition: 0.3s;
}

.form-group input:focus ~ i {
    color: #00bfff;
}

/* Botão gradiente */
button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    background-size: 200% 100%;
    transition: all 0.4s;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

button:hover {
    background-position: right center;
    box-shadow: 0 8px 28px rgba(0,0,0,0.25);
}

/* Mensagem de erro */
.error {
    color: #ff6b6b;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 500;
}

/* Responsividade */
@media (max-width: 400px) {
    .login-box {
        padding: 30px 20px;
    }
    h2 {
        font-size: 24px;
    }
    .form-group input {
        padding: 12px 35px 12px 12px;
    }
    button {
        padding: 12px;
        font-size: 15px;
    }
}

/* App Login Logo */
.logo-container {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 0px;
}

.logo-container img {
  width: 200px;
  height: auto;
}

img {
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}


.forgot-password {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9em;
}

.forgot-password a {
    color: #3B82F6; /* Azul que você escolheu */
    text-decoration: none;
}

.forgot-password a:hover {
    text-decoration: underline;
}
