/* ============================= */
/* MOBILE FIRST LOGIN */
/* ============================= */

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

/* Estructura principal flexible */
#app-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#main-content {
    flex: 1;
    display: flex;
}

#content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url("/cas/themes/intranet/images/header-scaled-4df21234ff7c37d5800038ae192c0518.jpg") no-repeat center center;
    background-size: cover;
    padding: 20px;
    box-sizing: border-box;
}

/* ============================= */
/* LOGIN FORM */
/* ============================= */

form#fm1, div#logoutBody {
    position: relative;
    z-index: 1;
    background: #ffffff;
    padding: 24px;
    border-radius: 16px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.35);
}

/* Inputs */

form#fm1 input[type="text"],
form#fm1 input[type="password"] {
    width: 100%;
    height: 45px;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 15px;
    box-sizing: border-box;
    margin: 4px 0;
}

form#fm1 input[type="password"],
form#fm1 label#lblpassword > input[type="text"] {
    width: calc(100% - 48px);
    border-radius: 8px 0 0 8px;
}

.mdc-text-field {
    background: transparent;
    border: none;
}

/* Botón login */

form#fm1 button[type="submit"] {
    width: 100%;
    height: 48px;
    background-color: #f7941d;
    border: none;
    color: white;
    font-weight: 700;
    border-radius: 8px;
    font-size: 15px;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

form#fm1 button[type="submit"]:hover {
    background-color: #e58300;
}

/* ============================= */
/* HEADER */
/* ============================= */

.top-header {
    width: 100%;
    background: #ffffff;
    height: 80px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.top-header-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-4set {
    height: 45px;
}

.contact-btn {
    border: 2px solid #f7941d;
    padding: 8px 20px;
    font-weight: 600;
    background: transparent;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.25s ease;
}

.contact-btn:hover {
    background: #f7941d;
    color: white;
}

/* ============================= */
/* TITLES */
/* ============================= */

.login-title {
    font-size: 22px;
    font-weight: 700;
    color: #1f2d3d;
    margin-bottom: 24px;
    text-align: center;
}

.login-title-icon {
    margin-right: 10px;
    font-size: 18px;
    color: #f7941d;
}

/* ============================= */
/* PASSWORD BUTTON */
/* ============================= */

.reveal-password {
    background: #1f4f7a;
    border: none;
    width: 48px;
    height: 45px;
    border-radius: 0 8px 8px 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.reveal-password i {
    color: white;
    font-size: 16px;
}

.reveal-password:hover i {
    color: #f7941d;
}

.reveal-password .icon-eye { display: none; }
.reveal-password .icon-eye-slash { display: inline-block; }

.reveal-password[aria-pressed="true"] .icon-eye { display: inline-block; }
.reveal-password[aria-pressed="true"] .icon-eye-slash { display: none; }

.mdc-text-field--with-trailing-icon .mdc-text-field__input {
    padding-right: 50px;
}

/* ============================= */
/* MENSAJES */
/* ============================= */

.banner-danger {
    padding: 0.5rem;
    margin: 8px 0;
    background-color: rgba(250, 139, 139, 0.8);
    border: 1px solid red;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
}

.mb-3 { margin-bottom: 16px; }
.form-group { margin: 16px 0; }
.me-2 { margin-right: 4px; }

hr.my-4 { display: none; }

/* ============================= */
/* LOGOUT */
/* ============================= */

.logout-box {
    background: #ffffff;
    padding: 24px;
    border-radius: 16px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.35);
    text-align: center;
}

.logout-button {
    width: 100%;
    height: 48px;
    background-color: #f7941d;
    border: none;
    color: white;
    font-weight: 700;
    border-radius: 8px;
    font-size: 15px;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.logout-button:hover {
    background-color: #e58300;
}

/* ============================= */
/* FOOTER */
/* ============================= */

#casFooter {
    width: 100%;
    background: #f7941d;
    color: white;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    flex-shrink: 0;
}

#casFooter span,
#casFooter a,
#casFooter code {
    color: white;
}

/* ============================= */
/* DESKTOP ENHANCEMENTS */
/* ============================= */

@media (min-width: 768px) {

    form#fm1,
    .logout-box {
        padding: 32px;
        max-width: 480px;
    }

    .login-title {
        font-size: 26px;
    }

    .top-header-inner {
        padding: 0 40px;
    }
}

@media (min-width: 1200px) {

    form#fm1,
    .logout-box {
        max-width: 520px;
    }
}