* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #050610;
    min-height: 100vh; /* Mudado para min-height para não cortar conteúdo em telas pequenas */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 20px; /* Margem de segurança para o celular */
}

.login-container {
    width: 100%;
    max-width: 400px; /* Largura ideal para desktop */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-area img {
    /* Ajuste dinâmico: a logo diminui em telas pequenas */
    width: clamp(150px, 40vw, 250px); 
    height: clamp(150px, 40vw, 250px);
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid #0a0064;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.login-box {
    width: 100%;
    background: rgba(0, 0, 0, 0.4); 
    padding: clamp(20px, 5vw, 40px); /* Espaçamento interno adaptável */
    border-radius: 15px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Suporte para Safari/iOS */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

h1 {
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: 2px;
    font-size: clamp(1.5rem, 6vw, 2rem); /* Texto responsivo */
}

.input-group {
    text-align: left;
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    color: #dfdfdf;
}

.input-group input {
    width: 100%;
    padding: 14px; /* Aumentado para facilitar o toque */
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white; /* Corrigido de transparente para branco para leitura */
    outline: none;
    font-size: 16px; /* Essencial para evitar zoom automático no iPhone */
}

.input-group input::placeholder {
    color: #888;
}

.forgot-link {
    display: block;
    font-size: 16px;
    color:  #5343e4;
    text-decoration: none;
    text-align: right;
    margin-top: 15px;
}

.btn-login {
    width: 100%;
    padding: 15px;
    background-color: #2e219e;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
    font-size: 16px;
    transition: 0.3s ease-in-out;
}

.btn-login:hover {
    background-color: #b62323;
    transform: translateY(-2px);
}

.btn-login:active {
    transform: scale(0.98); /* Feedback de clique no celular */
}

.form-footer {
    margin-top: 25px;
    font-size: 14px;
}

.form-footer a {
    color: #5343e4;
    text-decoration: none;
    font-weight: bold;
}

/* Ajuste extra para telas de cadastro com muitos campos */
.login-container {
    padding-top: 40px;
    padding-bottom: 40px;
}

/* Estilo para o campo de telefone não bugar no mobile */
input[type="tel"] {
    letter-spacing: 1px;
}

/* Ajustes específicos para telas muito pequenas (ex: iPhones antigos) */
@media (max-width: 360px) {
    .login-box {
        padding: 20px 15px;
    }
    
    .logo-area img {
        width: 120px;
        height: 120px;
    }


}
