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

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

body {
    font-family: 'Poppins', sans-serif;
}

body[light-mode=dark] {
    background-color: #2a3658ff !important;
    color: #ced4e2;
}

.page-login {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: #3E7099;
}

body[light-mode=dark] .page-login {
    background-color: #2a3658ff !important;
    color: #ced4e2;
}

.box-login {
    width: 688px;
    border-radius: 8px;
    background-color: #FFFFFF;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    box-shadow: 0 5px 7px 2px #0e5067;
}

body[light-mode=dark] .box-login {
    background-color: #546eb4ff;
    box-shadow: 0px 5px 7px 2px rgb(26, 34, 54);
    border: 1px solid white;
}

.login-header {
    width: 688px;
    height: 62px;
    background-color: #25425B;
    color: white;
    text-align: center;
    line-height: 30px;
    font-weight: 700;
    font-size: 18px;
    border-radius: 8px 8px 0 0;
    padding: 16px;
    letter-spacing: 0.5px;
    font-family: Poppins, sans-serif;
}

.input-container {
    position: relative;
    width: 560px;
    height: auto;
    padding-left: 16px;
    padding-right: 16px;
}

.box-login h5 {
    font-weight: bold;
    color: #3366CC;
    margin-top: 24px;
    margin-bottom: 16px;
}

body[light-mode=dark] .box-login h5 {
    color: white;
}

.label-card {
    width: 20%;
    font-weight: bold;
    display: inline-block;
    font-size: 19px;
}

.box-login input[type=text],
.box-login input[type=email],
.box-login input[type=password] {
    background-color: #EFF1F6;
    outline: none;
    border: none;
    box-shadow: none !important;
    font-weight: 400;
    font-family: 'Poppins', sans-serif;
    text-indent: 12px;
    width: 100%;
}



.box-login input[type=text]{
    outline: none;
    background: transparent;
}

.box-login input[type=text]::placeholder,
.box-login input[type=email]::placeholder,
.box-login input[type=password]::placeholder {
    color: #435375;
}


.box-login input[type=email]:hover,
.box-login input[type=password]:hover,
.box-login input[type=text]:hover {
    background-color: #DBE0EB !;
}


.input-custom:focus {
    background-color: #EFF1F6;
    color: #3E7099;
    border-bottom: 2px solid #3E7099;
}

/* .input-custom:hover{
    background-color: #DBE0EB;
} */

body[light-mode=dark] .box-login input[type=email],
body[light-mode=dark] .box-login input[type=password] {
    border: 2px solid white;
}

.box-login input[id=email-recuperar] {
    min-width: 528px;
    max-width: ;
    height: 56px;
    color: #BBC5D8;
    border-radius: 6px;
    padding: 4px 12px;
    gap: 12px;
    display: inline-block;
    font-weight: 400;
    font-size: 16px;
    line-height: 26px;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0;
}

.password-container {
    position: relative;
}

.form-actions {
    margin-top: 16px;
    margin-bottom: 24px;
    text-align: center;
    width: 100%;
}

.px-5-second {
    padding-left: 48px !important;
    padding-right: 48px !important;
}


.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    cursor: pointer;
    width: 24px;
    height: 24px;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231C2331'%3E%3Cpath d='M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z'/%3E%3C/svg%3E");
}

.toggle-password.showing {
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231C2331'%3E%3Cpath d='M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z'/%3E%3C/svg%3E") !important;
}



#remember_me:checked {
    background-color: #3E7099;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.2l-4.2-4.2L3 13.8l6 6 12-12-1.8-1.8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    border: none !important;
}

#remember_me:checked:hover {
    background-color: #1C2331;
}

.input-custom {
    min-width: 528px;
    height: 56px;
    background-color: #EFF1F6;
    border-bottom: 2px solid #BBC5D8;
    border-top-right-radius: 6px;
    border-top-left-radius: 6px;
    margin-bottom: 16px;
    padding: 4px 12px;
    color: #435375;
    display: inline-block;
    text-indent: 18px;
    font-weight: 400;
    font-size: 16px;
    line-height: 26px;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0;
}

.checkbox-custom {
    width: 24px;
    height: 24px;
    padding: 4px 0px 4px 12px;
    color: #435375;
    display: inline-block;
    font-weight: 400;
    font-size: 16px;
    line-height: 26px;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0;
}

.checkbox-custom:hover{
    border-color:#1C2331;
}

.icons-img {
    width: 24px;
    height: 24px;
}

input {
    outline: none;
    color: #1C2331;
}

input:focus {
    outline: none;
}

.link {
  display: block;
  font-size: 14px;
  color: #435375;
  font-weight: 500;
  text-decoration: none
}

.link:hover {
    color: #778AB1;
}

.link:active {
    color: #1C2331;
}

.auth-card {
    border-radius: 1rem;
    overflow: hidden;
    background-color: #e6fafa;
}

.btn-submit {
    height: 56px;
    width: 176px;
    padding: 16px 20px;
    gap: 6px;
    border-radius: 8px;
    background-color: #3E7099;
    color: white;
    text-align: center;
    border: none;
    display: block;
    font-size: 16px;
    cursor: pointer;
    line-height: 24px;
    letter-spacing: 0px;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    margin: 16px auto 0 auto;
}

.btn-submit:hover {
    background-color: #588FBB;
}

body[light-mode=dark] .btn-submit {
    background-color: rgb(61, 78, 128);
}

body[light-mode=dark] .btn-submit:hover {
    background-color: rgb(45, 57, 94);
}

.btn-submit:active {
    background-color: #25425B !important;
}

.modal-confirm {
    width: 400px;
    background-color: white;
    padding: 50px;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.modal-confirm span {
    width: 80%;
    display: flex;
    justify-content: space-between;
}

@media screen and (max-width: 511px) {
    .box-login {
        width: 100%;
        padding: 10px;
    }

    .label-card {
        display: block;
    }

    .box-login input[type=text],
    .box-login input[type=email],
    .box-login input[type=password] {
        width: 100%;
    }
}
/* Corrige estilos de autofill em todos os navegadores */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Garante que o input ocupe todo o espaço */
.input-custom input {
    flex: 1;
    min-width: 0;
}

/* Container do input quando em foco */
.input-custom:focus-within {
    border-color: #3E7099 !important;
    transition: all 0.3s ease;
}

/* Ícone quando o input está em foco */
.input-custom:focus-within .icons-img {
    filter: brightness(0) saturate(100%) invert(35%) sepia(40%) saturate(800%) hue-rotate(160deg) !important;
}

/* Texto do placeholder quando em foco */
.input-custom:focus-within input::placeholder {
    color: #3E7099 !important;
    opacity: 0.8;
}

/* Remove outline padrão */
.input-custom input:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Se você tiver labels externas */
.input-custom:focus-within + label,
.input-label:focus-within {
    color: #3E7099 !important;
}
.input-custom:focus-within .toggle-password {
    filter: brightness(0) saturate(100%) invert(35%) sepia(40%) saturate(800%) hue-rotate(160deg) !important;
}


/* ==========================================================================
   ALERT - ERROR
   ========================================================================== */

.custom-alert-error {
    background-color: #FFE6E8 !important;
    border: 2px solid #9B0310 !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    color: #2b2b40 !important;
    font-size: 14px !important;
}

.title-alert-error {
    font-size: 15px !important;
    color: #2b2b40 !important;
}

.description-alert-error {
    font-size: 14px !important;
    color: #9b0310 !important;
    display: block !important;
}

.icon-alert-error {
    font-size: 16px !important;
    color: #9b0310 !important;
    line-height: 1 !important;
}

.custom-close-error {
    background: none !important;
    font-size: 25px !important;
    font-weight: 400 !important;
    color: #9b0310 !important;
    border: none !important;
    opacity: 0.8 !important;
    cursor: pointer !important;
    padding-top: 5px !important;
    padding-right: 10px !important;
}

.fw-bold.title-alert-error.m-0 {
    color: #9b0310 !important;
}

.custom-close-error:hover {
    opacity: 1 !important;
}
