@import url("../reset.css");

body {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column !important;
    justify-content: center;
    align-items: center;
  	overflow: hidden;
}

.login-container {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column !important;
    align-items: center;
}

.login-form {
    width: 550px;
    height: 615px;
    background-color: var(--branco);
    border: 1px solid var(--bordaAzulada);
    border-radius: 20px;
}

.error-message {
    width: 550px;
    height: 50px;

    background-color: #f3e5e5;
    border: 1px solid #e0bfbf;
    color: #940404;

    font-weight: 500;
    border-radius: 20px;
    
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;

    position: absolute;
    top: 10%;
}

.login-fields {
    width: 100%;
    height: 255px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.login-actions {
    width: 100%;
    height: 130px;
    display: flex;
    justify-content: center;
    align-items: end;
}

.login-header {
    width: 90%;
    height: 200px;
    margin-left: 5%;
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    align-items: center;
}

.header-text h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--h1Color);
}

.header-text .subtitle {
    font-weight: 400;
    font-size: 16px;
    color: var(--h4Color);
}

.header-text {
    width: 40%;
}

.logo {
    width: 80px;
    margin-right: 00px;
}

.logo img {
    width: 100%;
}

.form-group {
    width: 90%;
    margin-bottom: 20px;
}

.form-group label {
    color: var(--labelColor);
    display: block;
    margin-bottom: 5px;
}

.form-input {
    width: 100%;
    height: 50px;
    color: rgb(40, 40, 40);
    border: 1px solid var(--bordaAzulada);
    border-radius: 10px;
    padding-left: 15px;
    padding-right: 15px;
    font-size: .85rem;
    outline: none;
    transition: border 0.3s ease-in-out;
}

.form-input::placeholder {
    color: var(--textColor);
}

.form-input:focus {
    border-color: var(--h1Color);
}

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--textColor);
}

.login-button {
    width: 90%;
    height: 80px;
    background-color: transparent;
    border: 1px solid #8d9494;
    border-radius: 10px;
    color: #585c5c;
    font-size: 25px;
    font-weight: 600;
    cursor: pointer;
}

.login-button:hover {
    background-color: #3a3f3f;
    border: 1px solid #3a3f3f;
    color: white;
}

.remember-me {
    display: flex;
    align-items: center;
    margin-top: 5px;
    margin-left: 3px;
}



.custom-checkbox {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    user-select: none;
    color: var(--textColor);
    font-size: 0.95rem;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: white;
    border: 1px solid var(--bordaAzulada);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.custom-checkbox:hover input ~ .checkmark {
    border-color: #3a3f3f;
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: #3a3f3f;
    border-color: #3a3f3f;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label {
    margin-left: 2px;
    font-weight: 400;
}

.custom-checkbox input:focus ~ .checkmark {
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

@media screen and (max-width: 600px) {
    .login-form {
        width: 100%;
        padding: 8px;
		border: none;
    }

    .header-text h1 {
        font-size: 44px;
    }

    .header-text .subtitle {
      	width: 200px;
        font-size: 14px;
    }

    .logo {
        transform: scale(1.7);
		margin-top: -10px;
    }

    .error-message {
        font-size: 12px;
        height: 40px;
    }

    .form-input {
        font-size: 0.85rem;
    }

    .login-button {
        height: 60px;
        font-size: 18px;
    }
}
