* { box-sizing: border-box; }

html, body { height: 100%; }

html {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
}

body {
    margin: 0;
    color: #444;
}

.container {
    background-color: #25663D;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100vw;
    --input-focus-color: #388e3c;
    --submit-btn-color: #42A668;
    --submit-btn-hover-color: #388e3c;
    --alert-error-color: #e53935;
    --alert-success-color: #388e3c;
}

.back-principal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 2rem 1rem;
}

.logo-def {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    max-width: 400px;
    margin: 0 auto 1.5rem;
}

.logo-def img {
    max-width: 100%;
    height: auto;
}

.login-form {
    background-color: white;
    border-radius: 5px;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.07),
        0 2px 4px rgba(0, 0, 0, 0.07),
        0 4px 8px rgba(0, 0, 0, 0.07),
        0 8px 16px rgba(0, 0, 0, 0.07),
        0 16px 32px rgba(0, 0, 0, 0.07),
        0 32px 64px rgba(0, 0, 0, 0.07);
    padding: 2.15rem 1.5rem;
    max-width: 100%;
    width: 25rem;
}

.login-form .header {
    align-items: center;
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.login-form .header .logo img {
    height: auto;
    margin-bottom: 1rem;
    width: 3.5rem;
}

.login-form .header .login {
    color: #444;
    font-size: 1.75rem;
    font-weight: bold;
    margin: 0 0 .35rem;
}

.login-form .header .client-hint {
    margin: 0 0 1rem;
    font-size: .95rem;
    color: #666;
    text-align: center;
    line-height: 1.3;
}

.login-form .header .client-hint strong {
    color: #25663D;
    font-weight: 600;
}

.alert {
    text-align: center;
    font-size: .95rem;
    font-weight: bold;
    width: 100%;
    margin-bottom: .75rem;
}

.alert-error { color: var(--alert-error-color); }
.alert-success { color: var(--alert-success-color); }
.alert-warning { color: #f59e0b; }
.alert-info { color: #0277bd; }

.field-error {
    color: var(--alert-error-color);
    font-size: .9rem;
    text-align: center;
    margin: -.5rem 0 .75rem;
}

.input-control {
    border-bottom: 1px solid #ccc;
    margin-bottom: 1.05rem;
    position: relative;
}

.input-control input {
    border: none;
    color: #333;
    display: block;
    font-size: 1.1rem;
    outline: none;
    padding: 0.75rem 1rem;
    width: 100%;
    margin-bottom: 2px;
    background: transparent;
}

.input-control:after {
    content: "";
    display: block;
    width: 0;
    height: 2px;
    background-color: var(--input-focus-color);
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    transition: .3s;
}

.input-control input:focus ~ .input-control:after,
.input-control:focus-within:after {
    width: 100%;
    left: 0;
    transform: none;
}

.input-control.has-icon .icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.input-control.has-icon.has-icon-left .icon-left {
    left: .5rem;
}

.input-control.has-icon.has-icon-left input {
    padding-left: 2rem;
}

.input-control.has-icon .icon img {
    height: auto;
    width: 1rem;
}

.remember-me {
    font-size: .9rem;
    margin-bottom: 1rem;
    color: #555;
}

.remember-me label {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    cursor: pointer;
}

.login-actions {
    margin-bottom: 1rem;
}

#btnEntrar,
.login-actions button[type=submit] {
    background-color: var(--submit-btn-color);
    border-radius: 30px;
    border: none;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.07),
        0 2px 4px rgba(0, 0, 0, 0.07),
        0 4px 8px rgba(0, 0, 0, 0.07),
        0 8px 16px rgba(0, 0, 0, 0.07),
        0 16px 32px rgba(0, 0, 0, 0.07);
    color: white;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    line-height: 1.5;
    margin: .5rem 0;
    outline: none;
    padding: .75rem 1rem;
    text-transform: uppercase;
    width: 100%;
    transition: background-color .35s;
}

#btnEntrar:hover,
.login-actions button[type=submit]:hover {
    background-color: var(--submit-btn-hover-color);
}

.login-links {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5em;
    margin-bottom: 1rem;
}

.login-links a {
    color: #0277bd;
    font-size: .95rem;
    text-decoration: none;
}

.login-links a:hover {
    color: #004c8c;
}

.login-info {
    margin-top: 1rem;
    text-align: center;
    font-size: .9rem;
    color: #666;
}

@media screen and (max-width: 768px) {
    .login-form { width: 100%; }
    .input-control { margin-bottom: 1.5rem; }
}
