/* login.css */

* {
    font-family: Calibri, 'Trebuchet MS', sans-serif;
}

/* Background fixo */
.bckgrd {
    height: 100vh;
    width: 100vw;
    position: fixed;
    z-index: -1;
    object-fit: cover; /* Garante que a imagem preencha a tela sem distorcer */
}

/* Estrutura Principal */
.conteudo {
    height: 100vh;
    color: white;
    width: 100%;
}

@media (min-width: 768px) {
    .conteudo { width: 35vw; }
    .imgInfinite { width: 32vw; }
}
@media (max-width: 767px) {
    .conteudo { width: 80vw; }
    .imgInfinite { width: 70vw; }
    .DivRodape { display: none; }
}

.DivRodape {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
}
.LogoRodape { width: 170px; }

/* Customização dos Alertas */
.alert {
    padding: 15px;
    color: white;
    border-radius: 5px;
}
.alert.success { background-color: #4CAF50; border: none; }
.alert.warning { background-color: #ff9800; border: none; }
.alert.error   { background-color: #df2929; border: none; }

.closebtn {
    margin-left: 15px;
    color: white;
    font-weight: bold;
    float: right;
    font-size: 22px;
    line-height: 20px;
    cursor: pointer;
    transition: 0.3s;
}
.closebtn:hover { color: black; }

/* Animação do Loader */
.loader {
    border: 10px solid #f3f3f3;
    border-radius: 50%;
    border-top: 10px solid #f5d561;
    border-bottom: 10px solid #f5d561;
    width: 70px;
    height: 70px;
    margin: 0 auto 20px auto;
    animation: spin 2s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Inputs Personalizados (Linha Dourada) */
.wrap-input100 {
    position: relative;
    border-bottom: 2px solid #d9d9d9;
    margin-bottom: 30px;
}

.input100 {
    font-size: 18px;
    display: block;
    width: 100%;
    height: 32px;
    background: transparent;
    padding: 0 5px;
    color: white;
    border: none !important;
    outline: none !important;
}

.focus-input100 {
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}
.focus-input100::before {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #f5d561;
    transition: all 0.4s;
}
.focus-input100::after {
    content: attr(data-placeholder);
    position: absolute;
    top: 0;
    left: 5px;
    font-size: 18px;
    color: #cecece;
    transition: all 0.4s;
}

.input100:focus + .focus-input100::after,
.input100.has-val + .focus-input100::after {
    top: -20px;
    font-size: 14px;
    color: #f5d561;
}
.input100:focus + .focus-input100::before,
.input100.has-val + .focus-input100::before {
    width: 100%;
}

/* Checkbox Personalizado */
.container-check {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-left: 25px;
}
.container-check input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}
.checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #eee;
    border-radius: 4px;
    border: 1px solid #f5d56159;
}
.container-check:hover input ~ .checkmark { background-color: #ccc; }
.container-check input:checked ~ .checkmark { background-color: #384761; }
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 11px;
    border: solid #f5d561;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}
.container-check input:checked ~ .checkmark:after { display: block; }

/* Botões e Links */
.btnLogin {
    background-color: #384761 !important;
    color: white !important;
    border: none !important;
    padding: 8px 25px;
    border-radius: 5px;
}
.btnLogin:hover {
    background-color: #445572 !important;
}
.aTagJS { color: white; text-decoration: none; }
.aTagJS:hover { color: #f5d561; text-decoration: none; }

/* Mensagem de Erro Principal */
.MsgErro {
    padding: 10px 15px;
    background-color: #ffcccc;
    border-left: 5px solid red;
    color: black;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Hint do CapsLock */
.iconCapsLock { color: #f5d561; margin-right: 5px; }
.hide { opacity: 0; pointer-events: none; }
.hint { position: relative; display: inline-block; }
.hintText {
    visibility: hidden;
    opacity: 0;
    width: 120px;
    background-color: whitesmoke;
    color: black;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    font-size: 13px;
    transition: opacity 0.3s;
}
.hintText::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: whitesmoke transparent transparent transparent;
}
.hint:hover .hintText { visibility: visible; opacity: 1; }
