* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: calibri, sans-serif;
    height: 100%;
    width: 100%;
}

.login-container {
    margin: 0;
    padding: 10px;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.full-screen-filter {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #a3d5ff;
    opacity: 0.2;
}

.login-card {
    border-radius: 10px;
    overflow: hidden;
    width: 800px;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: row;
    box-shadow: 0 0 15px #4a4a4a;
}

.welcome {
    flex: 6;
    height: 500px;
    gap: 10px;
    padding: 20px;
    background: #2e4c61;
    opacity: 0.9;
    font-family: calibri, sans-serif;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.welcome-to {
    color: rgb(146, 170, 195);
    font-size: 38px;
    opacity: 1;
}

.app-name {
    color: white;
    font-size: 67px;
    opacity: 1;
}

.flex-row-space-between {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.flex-row-space-between > a,
.flex-row-space-between > div {
    display: inline-block;
    align-self: flex-end;
}

.site-link {
    color: white;
    transition: color 0.3s ease;
}

.site-link:hover {
    color: lightgrey;
}

.login-link {
    color: #4a4a4a;
    transition: color 0.3s ease;
    padding: 20px;
    text-decoration: underline;
    cursor: pointer;
}

.login-link:hover {
    color: #999999;
}

.app-logo {
    height: 75px;
}

img {
    max-width: 100%;
    max-height: 100%;
}

.login {
    flex: 4;
    height: 500px;
    display: flex;
    flex-direction: column;
    background: white;
    opacity: 0.8;
    position: relative;
}

.login-title {
    color: rgb(73, 86, 98);
    font-family: calibri, sans-serif;
    font-size: 35px;
    font-weight: 500;
}

.login-label {
    display: flex;
    margin-top: 15px;
    border: 1px solid #999999;
    width: 100%;
    height: 30px;
    border-radius: 3px;
    overflow: hidden;
    line-height: 30px;
}

.login-label input {
    flex-grow: 1;
    vertical-align: top;
    border: 0;
    height: 30px;
    font-size: 13px;
    padding-left: 10px;
}

.login-label input:focus {
    outline: none;
}

.login-label span {
    vertical-align: top;
    height: 30px;
    width: 30px;
    line-height: 30px;
    text-align: center;
}

.login-form {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-button {
    margin-top: 30px;
    width: 100%;
    color: white;
    border: 1px solid rgb(73, 86, 98);
    background-color: rgb(73, 86, 98);
    line-height: 35px;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    padding: 0 20px;
    border-radius: 3px;
}

.login-button:hover,
.login-button:focus {
    background-color: white;
    color: rgb(73, 86, 98);
}

.login-help {
    flex: 0;
    padding: 20px;
    text-align: right;
}

.login-help button {
    margin-top: 0;
    padding: 0;
    border-radius: 26px;
    width: 26px;
    height: 26px;
    font-weight: bold;
}

/* Modal de redefinição de senha */
.modal {
    width: 500px;
    max-width: 90%;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 15px #4a4a4a;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 20;
}

.modal-title {
    font-size: 25px;
    padding-right: 30px;
    font-weight: 500;
    color: rgb(73, 86, 98);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    color: rgb(73, 86, 98);
    font-weight: bold;
    font-size: 20px;
    line-height: 20px;
    text-align: right;
    cursor: pointer;
}

/* Remove a cor do preenchimento automático */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    box-shadow: 0 0 0 30px white inset !important;
    -webkit-box-shadow: 0 0 0 30px white inset !important;
}

/* Responsividade para dispositivos móveis */
@media (max-width: 768px) {
    .login-card {
        flex-direction: column;
    }

    .welcome-to {
        font-size: 28px;
    }

    .app-name {
        font-size: 47px;
    }

    .app-logo {
        height: 45px;
    }
}
