@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

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

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: url('../assets/logos/banner-PeB.jpg') no-repeat;
    background-size: cover;
    background-position: center;
}

.container {
    width: 420px;
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, .2);
    border-radius: 10px;
    color: black;
    padding: 30px 40px;
    box-shadow: 0 0 15px #FFFF00;
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
}

.container h1 {
    font-size: 36px;
    text-align: center;
    color: #fff;
}

.btn-voltar {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, .2);
    color: #fff;
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.btn-voltar:hover {
    background: #fff;
    color: #333;
}

.btn-voltar i {
    font-size: 18px;
}

.input-box {
    position: relative;
    width: 100%;
    height: 50px;
    margin: 30px 0;
}

.input-box input {
    width: 100%;
    height: 100%;
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, .2);
    border-radius: 40px;
    outline: none;
    font-size: 16px;
    color: #fff;
    padding: 20px 45px 20px 20px;
}

.input-box input::placeholder {
    color: #fff;
}

.input-box i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #fff;
}

/* ============================================
   CHECKBOX PERSONALIZADO - LEMBRE DE MIM
============================================ */
.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: -15px 0 15px;
    color: #fff;
}

/* Esconder checkbox original completamente */
.remember-forgot input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Container do checkbox */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

/* Checkbox personalizado (quadrado) */
.custom-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Checkmark (✓) - inicialmente escondido */
.custom-checkbox::after {
    content: '✓';
    font-size: 12px;
    font-weight: bold;
    color: #FFD424;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s;
}

/* Quando marcado - fica amarelo */
input[type="checkbox"]:checked + .checkbox-container .custom-checkbox {
    background: #FFD424;
    border-color: #FFD424;
}

input[type="checkbox"]:checked + .checkbox-container .custom-checkbox::after {
    opacity: 1;
    transform: scale(1);
}

/* Texto "Lembrar de mim" - padrão branco */
.checkbox-text {
    color: #fff;
    transition: color 0.3s;
}

/* Quando marcado - texto fica amarelo */
input[type="checkbox"]:checked + .checkbox-container .checkbox-text {
    color: #FFD424;
}

/* Hover no checkbox */
.checkbox-container:hover .custom-checkbox {
    border-color: #FFD424;
    background: rgba(255, 212, 36, 0.2);
}

/* Link "Esqueci a senha" - VERMELHO */
#esqueciSenha {
    color: #EF4444;
    font-weight: 500;
}

#esqueciSenha:hover {
    color: #DC2626;
    text-decoration: underline;
}

.login {
    width: 100%;
    height: 50px;
    background-color: #fff;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(0, 0, 0, .1);
    margin-top: 20px;
}

.login:hover {
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, .2);
    color: #fff;
    transition: 0.5s;
}

.login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#errorMsg {
    padding: 12px;
    border-radius: 40px;
    margin-top: 16px;
    font-size: 14px;
    text-align: center;
    display: none;
}

#errorMsg.error {
    background: rgba(239, 68, 68, 0.3);
    border: 2px solid rgba(239, 68, 68, 0.5);
    color: #fecaca;
    display: block;
}

#errorMsg.success {
    background: rgba(34, 197, 94, 0.3);
    border: 2px solid rgba(34, 197, 94, 0.5);
    color: #bbf7d0;
    display: block;
}

.register-link {
    font-size: 14px;
    text-align: center;
    margin: 20px 0 15px;
    color: #fff;
}

.register-link p {
    margin: 0;
}

/* Link "Cadastre-se" - VERDE */
.register-link a {
    text-decoration: none;
    color: #22c55e;
    font-weight: 600;
}

.register-link a:hover {
    color: #16a34a;
    text-decoration: underline;
}

@media (max-width: 480px) {
    .container {
        width: 90%;
        padding: 20px 25px;
    }
    .container h1 {
        font-size: 28px;
    }
    .remember-forgot {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}