@font-face {
    font-family: "Montserrat";
    src: url("../fonts/Montserrat-Regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url("../fonts/Montserrat-Bold.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --auth-navy: #005570;
    --auth-teal: #00ACAC;
    --auth-teal-hover: #009B9B;
    --auth-lime: #AAAB21;
    --auth-line: #D6D8D8;
    --auth-surface: #FCFCFC;
    --auth-background: #F4F4F4;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-width: 320px;
    min-height: 100%;
    margin: 0;
}

body {
    color: #333D3E;
    background: var(--auth-background);
    font-family: "Montserrat", Arial, sans-serif;
}

.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 32px 20px;
}

.auth-shell {
    display: flex;
    width: min(870px, 100%);
    min-height: 520px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--auth-surface);
    box-shadow: 0 14px 34px rgba(0, 57, 74, 0.14);
}

.auth-visual {
    flex: 0 0 44%;
    min-height: 520px;
    background-image: url("../login/img/login_banner_izquierda.jpeg");
    background-position: center;
    background-size: cover;
}

.auth-panel {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: 40px;
    border: 1px solid var(--auth-line);
    border-left: 0;
    background: var(--auth-surface);
}

.auth-brand {
    align-self: flex-start;
    width: auto;
    height: 40px;
    object-fit: contain;
}

.auth-heading {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-heading h1 {
    position: relative;
    margin: 0;
    padding-left: 16px;
    color: var(--auth-navy);
    font-size: 32px;
    line-height: 40px;
}

.auth-heading h1::before {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 0;
    width: 4px;
    border-radius: 2px;
    background: var(--auth-lime);
    content: "";
}

.auth-heading p {
    margin: 0;
    color: #333D3E;
    font-size: 14px;
    line-height: 20px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: #333D3E;
    font-size: 13px;
    line-height: 20px;
    font-weight: 600;
}

.auth-field input {
    width: 100%;
    height: 44px;
    padding: 0 13px;
    color: #050606;
    border: 1px solid var(--auth-line);
    border-radius: 4px;
    outline: 0;
    background: #ffffff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
}

.auth-field input:focus {
    border-color: var(--auth-teal);
    box-shadow: 0 0 0 3px rgba(0, 172, 172, 0.1);
}

.auth-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 5px;
}

.auth-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.auth-button-primary {
    color: #FCFCFC;
    background: var(--auth-teal);
}

.auth-button-primary:hover {
    background: var(--auth-teal-hover);
}

.auth-button-secondary {
    color: var(--auth-navy);
    border-color: #B3CCD4;
    background: #FCFCFC;
}

.auth-button-secondary:hover {
    background: #E6F7F7;
}

.auth-error,
.auth-success,
.auth-info {
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 11px;
    line-height: 16px;
}

.auth-error {
    color: #9B2732;
    border: 1px solid #F0B9BE;
    background: #FFF4F5;
}

.auth-success {
    color: #1C6F5C;
    border: 1px solid #BFE4D7;
    background: #F1FBF7;
}

.auth-info {
    color: #4C656A;
    border: 1px solid #D7E5E6;
    background: #F6FBFB;
}

.active-sessions {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid #D7E5E6;
    border-radius: 5px;
    background: #F6FBFB;
}

.active-sessions h2 {
    margin: 0;
    color: var(--auth-navy);
    font-size: 14px;
}

.active-sessions p {
    margin: 0;
    color: #4C656A;
    font-size: 11px;
    line-height: 16px;
}

.active-session-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px;
    border: 1px solid #D6D8D8;
    border-radius: 4px;
    background: #ffffff;
}

.active-session-details {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.active-session-details strong {
    color: var(--auth-navy);
    font-size: 11px;
}

.active-session-details span,
.active-session-details small {
    overflow: hidden;
    color: #6B7D80;
    font-size: 10px;
    line-height: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.active-session-close {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 12px;
    font-size: 11px;
}

.active-sessions-empty {
    color: #1C6F5C !important;
}

.auth-links {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--auth-navy);
    font-size: 11px;
}

.auth-links a:hover {
    text-decoration: underline;
}

.tenant-page {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 100vh;
    padding: 56px 20px;
}

.tenant-card {
    width: min(820px, 100%);
    padding: 34px;
    border: 1px solid var(--auth-line);
    border-radius: 8px;
    background: #FCFCFC;
    box-shadow: 0 14px 34px rgba(0, 57, 74, 0.1);
}

.tenant-card h1 {
    position: relative;
    margin: 0 0 8px;
    padding-left: 16px;
    color: var(--auth-navy);
    font-size: 28px;
    line-height: 36px;
}

.tenant-card h1::before {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 0;
    width: 4px;
    border-radius: 2px;
    background: var(--auth-lime);
    content: "";
}

.tenant-card > p {
    margin: 0 0 25px;
    color: #6B7D80;
    font-size: 12px;
}

.tenant-list {
    display: grid;
    gap: 0;
    border-top: 1px solid #D6D8D8;
}

.tenant-option {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 64px;
    padding: 12px 4px;
    color: #333D3E;
    border: 0;
    border-bottom: 1px solid #D6D8D8;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.tenant-option:hover,
.tenant-option:focus-visible {
    background: #F3FBFB;
    outline: 0;
}

.tenant-option strong {
    display: block;
    color: var(--auth-navy);
    font-size: 12px;
    line-height: 17px;
}

.tenant-option small {
    display: block;
    margin-top: 2px;
    color: #6B7D80;
    font-size: 10px;
    line-height: 14px;
}

.pending-card {
    width: min(560px, 100%);
    text-align: center;
}

.pending-card h1 {
    padding-left: 0;
}

.pending-card h1::before {
    display: none;
}

@media (max-width: 680px) {
    .auth-page {
        padding: 20px 12px;
    }

    .auth-shell {
        min-height: auto;
    }

    .auth-visual {
        display: none;
    }

    .auth-panel {
        width: 100%;
        padding: 28px 22px;
        border-left: 1px solid var(--auth-line);
    }

    .tenant-page {
        padding: 24px 12px;
    }

    .tenant-card {
        padding: 24px 18px;
    }

}

.auth-messages {
    position: fixed;
    z-index: 20;
    top: 16px;
    right: 16px;
    display: grid;
    gap: 8px;
    width: min(390px, calc(100% - 32px));
}
