/* ------------------------------------------------------------------------ */
/*                          Login Page - New Design                         */
/* ------------------------------------------------------------------------ */

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Contenedor principal de página completa */
.login-page {
    min-height: 100%;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    background-color: #2c3e50;
    background-image: url('/Content/images/login_background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Tarjeta central con efecto frosted glass */
.login-card {
    max-width: 26rem;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /*border-radius: 12px;*/
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: 2rem 2rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-card form {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* Logo de cabecera */
.login-logo {
    text-align: center;
    padding-bottom: 15%;
}

.login-logo img {
    width: 50%;
    height: auto;
}

/* Campos de entrada */
.login-field {
    margin-bottom: 6%;
}

.login-field label {
    display: block;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.875em;
    font-weight: 400;
    color: #6b6b6b;
    /*padding-bottom: 1%;*/
}

.login-field input {
    width: 100%;
    font-size: 1em;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    outline: none;
    box-sizing: border-box;
    border: none;
    border-bottom: 1px solid #cccccc;
    background: transparent;
    
    padding: 0.625em 0;
    /*padding: 0.625em 0.75em;*/
    /*border: 1px solid #ccc;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.5);*/
    transition: border-color 0.3s ease;
    /*transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;*/
}

.login-field input:focus {
    border-bottom-color: #34495e;
    /*border-color: #34495e;
    box-shadow: 0 0 0 3px rgba(52, 73, 94, 0.15);
    background: rgba(255, 255, 255, 0.8);*/
}

.login-field input.password {
    -webkit-text-security: disc;
}

/* Mensajes de error */
.login-errors {
    color: #e74c3c;
    font-size: 0.875em;
    text-align: center;
    margin-bottom: 5%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Mensajes de comentarios */
.login-comments {
    color: #666;
    font-size: 0.875em;
    text-align: center;
    margin-bottom: 5%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Botón principal */
.login-submit-btn {
    width: 80%;
    padding: 0.875em 1.25em;
    background-color: #34495e;
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.875em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 0% 10%;
}

.login-submit-btn:hover {
    background-color: #2c3e50;
}

/* Separador con "o" */
.login-separator {
    display: flex;
    align-items: center;
    margin-bottom: 3vh;
    margin-top: auto;
}

.login-separator-line {
    flex: 1;
    height: 1px;
    background-color: #ddd;
}

.login-separator-text {
    min-width: 1.875em;
    min-height: 1.875em;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Verdana', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.75em;
    color: #888;
    background: rgba(255, 255, 255, 0.7);
    margin: 0 4%;
    line-height: 1;
    padding-bottom: 2px;
    aspect-ratio: 1;
}

/* Contenedor de botones SSO */
.login-sso-container {
    display: flex;
    flex-direction: column;
    gap: 0.75em;
    width: 100%;
    max-width: 100%;
}

/* Botones SSO */
.login-sso-btn {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 0.75em 1em;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: clamp(0.7em, 2vw, 0.875em);
    font-weight: 500;
    transition: all 0.3s ease;
    box-sizing: border-box;
    border: 1px solid transparent;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.login-sso-btn .sso-icon {
    width: 1.5em;
    height: 1.5em;
    min-width: 1.5em;
    margin-right: 0.75em;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.login-sso-btn .sso-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.login-sso-btn .sso-text {
    flex: 1;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Office 365 */
.login-sso-btn.sso-office365 {
    background: rgba(235, 61, 1, 0.8);
    color: #fff;
}

.login-sso-btn.sso-office365:hover {
    background: rgba(235, 61, 1, 1);
}
        
/* Google */
.login-sso-btn.sso-google {
    background: #fff;
    color: #646262;
    border: thin solid #bfbfbf;
}

.login-sso-btn.sso-google:hover {
    background: #f0f0f0;
}

/* Entra ID */
.login-sso-btn.sso-entraid {
    background: rgba(0, 139, 223, 0.8);
    color: #fff;
}

.login-sso-btn.sso-entraid:hover {
    background: rgba(0, 139, 223, 1);
}

/* Enlace de cambiar contraseña */
.login-change-pass {
    display: block;
    text-align: center;
    margin: 7% 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.8em;
    color: #34495e;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s ease;
    align-self: center;
}

.login-change-pass:hover {
    color: #2c3e50;
    text-decoration: underline;
}

/* Título de página (ChangePass) */
.login-title {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.5em;
    font-weight: 600;
    color: #34495e;
    text-align: center;
    margin-bottom: 20px;
}

/* Contenedor de botones (ChangePass) */
.login-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

/* Botón Cancelar */
.login-cancel-btn {
    width: 80%;
    display: block;
    padding: 0.875em 1.25em;
    background-color: transparent;
    color: #34495e;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.875em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    text-decoration: none;
    border: 2px solid #34495e;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    margin: 0% 10%;
}

/* ---------------------------------------------------------------- */
/*                    Two Factor Authentication                      */
/* ---------------------------------------------------------------- */

.login-2fa-config {
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
}

.login-2fa-title {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.1em;
    font-weight: 600;
    color: #34495e;
    margin-bottom: 10px;
}

.login-2fa-instructions {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
}

.login-2fa-qr {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px auto;
    width: 100%;
}

.login-2fa-qr img {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
