/* ========================================================================== 
   Login ERP · Concretos ABCD
   Diseño glass premium + botón Glass Outline.
   Mantiene posición y dimensiones generales del login; solo ajusta estética.
   ========================================================================== */

:root {
    --login-orange: #F27507;
    --login-orange-strong: #FF6B00;
    --login-orange-soft: rgba(242, 117, 7, 0.10);
    --login-ink: #233244;
    --login-ink-strong: #172638;
    --login-muted: #6f7d8d;
    --login-border: rgba(23, 38, 56, 0.12);
    --login-panel-border: rgba(255, 255, 255, 0.92);
    --login-shadow-panel: 0 34px 88px rgba(15, 23, 42, 0.16);
    --login-shadow-soft: 0 13px 29px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

html,
body {
    min-height: 100%;
}

body.erp-login-body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--login-ink);
    background: #eef1f4;
}

.erp-login-shell {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
}

.erp-login-stage {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(22px, 2vw, 36px) clamp(82px, 8.5vw, 165px) clamp(22px, 2vw, 36px) clamp(22px, 2vw, 40px);
    background-image: url('../img/login/login-bg-option3.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.erp-login-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 78% 48%, rgba(255, 255, 255, 0.18), transparent 32%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.00) 0%, rgba(255, 255, 255, 0.02) 56%, rgba(255, 255, 255, 0.08) 100%);
}

.erp-login-form-area {
    width: min(100%, 530px);
    display: flex;
    justify-content: flex-end;
}

.erp-login-panel {
    position: relative;
    width: min(100%, 455px);
    padding: clamp(30px, 2vw, 39px);
    border-radius: 32px;
    overflow: hidden;
    background:
        radial-gradient(circle at 16% 8%, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.00) 33%),
        radial-gradient(circle at 85% 92%, rgba(255, 255, 255, 0.40) 0%, rgba(255, 255, 255, 0.00) 35%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.76) 0%, rgba(246, 249, 252, 0.58) 48%, rgba(255, 255, 255, 0.70) 100%);
    border: 1px solid var(--login-panel-border);
    box-shadow:
        var(--login-shadow-panel),
        0 1px 0 rgba(255, 255, 255, 0.64),
        inset 0 1px 0 rgba(255, 255, 255, 0.88),
        inset 0 -1px 0 rgba(23, 38, 56, 0.045);
    backdrop-filter: blur(24px) saturate(1.08);
    -webkit-backdrop-filter: blur(24px) saturate(1.08);
}

.erp-login-panel::before {
    content: "";
    position: absolute;
    inset: 7px;
    z-index: 0;
    pointer-events: none;
    border-radius: 27px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow:
        inset 0 0 0 1px rgba(23, 38, 56, 0.035),
        0 0 0 1px rgba(255, 255, 255, 0.18);
}

.erp-login-panel > * {
    position: relative;
    z-index: 1;
}

.erp-login-eyebrow {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 24px;
    color: #748092;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.erp-login-eyebrow-pill {
    min-height: 29px;
    padding: 0 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--login-ink-strong);
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.96);
    box-shadow:
        0 9px 20px rgba(15, 23, 42, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.erp-login-eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--login-orange);
    box-shadow:
        0 0 0 4px rgba(242, 117, 7, 0.10),
        0 0 14px rgba(242, 117, 7, 0.18);
}

.erp-login-eyebrow-divider {
    width: 1px;
    height: 18px;
    background: rgba(23, 38, 56, 0.14);
}

.erp-login-eyebrow-brand strong {
    color: var(--login-ink-strong);
    font-weight: 900;
}

.erp-login-panel-header {
    text-align: center;
    margin-bottom: 25px;
}

.erp-login-panel-header h2 {
    margin: 0 0 9px;
    color: #223247;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: clamp(2.25rem, 2.1vw, 2.82rem);
    line-height: 0.96;
    font-weight: 800;
    letter-spacing: -0.045em;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.erp-login-panel-header p {
    margin: 0;
    color: var(--login-muted);
    font-size: clamp(0.94rem, 0.84vw, 1.02rem);
    font-weight: 500;
}

.erp-login-alert-stack { margin-bottom: 14px; }

.erp-login-alert {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 13px 15px;
    margin-bottom: 10px;
    border-radius: 16px;
    font-size: 0.92rem;
    line-height: 1.42;
    font-weight: 650;
}

.erp-login-alert i { margin-top: 2px; }

.erp-login-alert-danger,
.erp-login-alert-error {
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.14);
    color: #b42318;
}

.erp-login-alert-success {
    background: rgba(22, 163, 74, 0.08);
    border: 1px solid rgba(22, 163, 74, 0.14);
    color: #15803d;
}

.erp-login-alert-info,
.erp-login-alert-warning {
    background: rgba(242, 117, 7, 0.08);
    border: 1px solid rgba(242, 117, 7, 0.16);
    color: #b45309;
}

.erp-login-form {
    display: grid;
    gap: 16px;
}

.erp-login-field label {
    display: block;
    margin: 0 0 8px;
    color: #26374d;
    font-size: 0.92rem;
    font-weight: 800;
}

.erp-login-input-wrap {
    position: relative;
}

.erp-login-input-icon,
.erp-login-password-toggle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #7d8999;
    z-index: 1;
}

.erp-login-input-icon {
    left: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    pointer-events: none;
}

.erp-login-password-toggle {
    right: 12px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.erp-login-password-toggle:hover {
    background: rgba(15, 23, 42, 0.05);
    color: #566171;
}

.erp-login-input {
    width: 100%;
    min-height: 55px;
    padding: 0 52px 0 49px;
    border-radius: 15px;
    border: 1px solid rgba(23, 38, 56, 0.13);
    background: rgba(255, 255, 255, 0.68);
    outline: none;
    color: #314052;
    font-size: 0.97rem;
    font-weight: 600;
    box-shadow:
        0 12px 24px rgba(15, 23, 42, 0.055),
        inset 0 1px 0 rgba(255, 255, 255, 0.82),
        inset 0 -1px 0 rgba(23, 38, 56, 0.025);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.erp-login-input::placeholder {
    color: #8490a0;
    font-weight: 500;
}

.erp-login-input:focus {
    border-color: rgba(242, 117, 7, 0.52);
    background: rgba(255, 255, 255, 0.88);
    box-shadow:
        0 0 0 5px rgba(242, 117, 7, 0.09),
        0 15px 28px rgba(15, 23, 42, 0.065),
        inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.erp-login-field-error {
    display: block;
    margin-top: 8px;
    color: #c2410c;
    font-size: 0.85rem;
    font-weight: 700;
}

.erp-login-submit {
    position: relative;
    min-height: 58px;
    margin-top: 4px;
    padding: 0 68px 0 24px;
    border: 1.5px solid rgba(242, 117, 7, 0.82);
    border-radius: 16px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.80) 0%, rgba(255, 255, 255, 0.54) 100%);
    color: var(--login-ink-strong);
    box-shadow:
        0 15px 32px rgba(242, 117, 7, 0.11),
        0 11px 22px rgba(15, 23, 42, 0.052),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: -0.025em;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.erp-login-submit::before {
    content: "";
    position: absolute;
    inset: 1px 60px 1px 1px;
    border-radius: 14px;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.04));
}

.erp-login-submit span {
    position: relative;
    z-index: 1;
}

.erp-login-submit i {
    position: absolute;
    top: 50%;
    right: 7px;
    z-index: 1;
    width: 45px;
    height: 45px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    color: #fff;
    background: linear-gradient(180deg, #ff7c13 0%, #f26f05 100%);
    box-shadow:
        0 12px 23px rgba(242, 117, 7, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.30);
    font-size: 1.35rem;
    line-height: 1;
}

.erp-login-submit:hover {
    transform: translateY(-1px);
    border-color: rgba(242, 117, 7, 0.94);
    box-shadow:
        0 18px 36px rgba(242, 117, 7, 0.14),
        0 14px 25px rgba(15, 23, 42, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.erp-login-submit:active { transform: translateY(0); }

.erp-login-divider {
    height: 1px;
    margin: 22px 0 17px;
    background: linear-gradient(90deg, transparent, rgba(23, 38, 56, 0.10), transparent);
}

.erp-login-support {
    display: flex;
    gap: 13px;
    align-items: center;
    margin-bottom: 15px;
}

.erp-login-support-icon {
    width: 43px;
    height: 43px;
    flex: 0 0 auto;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--login-orange);
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.94);
    box-shadow:
        0 10px 21px rgba(15, 23, 42, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
}

.erp-login-support-copy {
    color: #6f7d8d;
    font-size: 0.92rem;
    line-height: 1.4;
}

.erp-login-support-copy strong {
    display: block;
    color: #26374d;
    font-weight: 900;
}

.erp-login-footer-security {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: #667486;
    font-size: 0.86rem;
    line-height: 1.45;
    font-weight: 700;
}

.erp-login-footer-security i {
    color: var(--login-orange);
    margin-top: 1px;
}

@media (min-aspect-ratio: 19/9) {
    .erp-login-stage {
        background-image: url('../img/login/login-bg-option3-ultrawide.png');
        background-size: cover;
        background-position: center center;
        padding-right: clamp(190px, 11vw, 330px);
    }

    .erp-login-form-area {
        width: min(100%, 580px);
    }

    .erp-login-panel {
        width: min(100%, 500px);
    }
}

@media (min-aspect-ratio: 19/9) and (min-width: 1500px) {
    .erp-login-stage {
        padding-right: clamp(210px, 12vw, 390px);
    }

    .erp-login-form-area {
        width: min(100%, 610px);
    }

    .erp-login-panel {
        width: min(100%, 515px);
        padding: clamp(36px, 2.35vw, 48px);
        border-radius: 36px;
    }

    .erp-login-panel::before {
        border-radius: 31px;
    }

    .erp-login-eyebrow {
        margin-bottom: 27px;
    }

    .erp-login-panel-header {
        margin-bottom: 27px;
    }

    .erp-login-panel-header h2 {
        font-size: clamp(2.55rem, 2.18vw, 3rem);
    }

    .erp-login-form {
        gap: 19px;
    }

    .erp-login-input {
        min-height: 60px;
    }

    .erp-login-submit {
        min-height: 64px;
    }

    .erp-login-submit i {
        width: 50px;
        height: 50px;
        right: 7px;
        border-radius: 14px;
    }

    .erp-login-divider {
        margin: 26px 0 20px;
    }

    .erp-login-support-icon {
        width: 48px;
        height: 48px;
    }
}

@media (min-aspect-ratio: 23/9) {
    .erp-login-stage {
        background-position: center center;
        padding-right: clamp(280px, 14vw, 520px);
    }
}

@media (min-aspect-ratio: 23/9) and (min-width: 1900px) {
    .erp-login-stage {
        padding-right: clamp(320px, 15vw, 620px);
    }

    .erp-login-form-area {
        width: min(100%, 640px);
    }

    .erp-login-panel {
        width: min(100%, 535px);
        padding: clamp(38px, 2.45vw, 52px);
    }
}

@media (max-width: 1180px) {
    body.erp-login-body { overflow: auto; }

    .erp-login-stage {
        align-items: center;
        justify-content: flex-end;
        padding: 28px clamp(54px, 7vw, 110px) 32px 24px;
        background-position: 40% center;
    }

    .erp-login-form-area {
        width: min(100%, 540px);
    }

    .erp-login-panel {
        width: min(100%, 500px);
    }
}

@media (max-width: 1100px) and (min-width: 841px) {
    .erp-login-stage {
        min-height: 100vh;
        min-height: 100dvh;
        justify-content: flex-end;
        align-items: center;
        padding: clamp(24px, 3vw, 42px) clamp(36px, 5vw, 76px);
        background-image: url('../img/login/login-bg-option3.png');
        background-size: cover;
        background-position: 36% center;
    }

    .erp-login-form-area {
        width: min(100%, 500px);
        justify-content: flex-end;
    }

    .erp-login-panel {
        width: min(100%, 455px);
        padding: 30px 28px;
        border-radius: 30px;
    }

    .erp-login-panel::before {
        border-radius: 25px;
    }

    .erp-login-panel-header h2 {
        font-size: 2.25rem;
    }
}

@media (max-width: 840px) {
    body.erp-login-body { overflow: auto; }

    .erp-login-stage {
        min-height: 100vh;
        min-height: 100dvh;
        justify-content: center;
        align-items: flex-end;
        padding: 26px 18px 32px;
        background-image: url('../img/login/login-bg-option3.png');
        /* Ajuste móvil: encuadra el logo del fondo en el espacio superior del login. */
        background-size: auto calc(100% + 110px);
        background-position: 10% -86px;
    }

    .erp-login-stage::after {
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.22) 52%, rgba(255, 255, 255, 0.62) 100%),
            linear-gradient(90deg, rgba(255, 255, 255, 0.00) 0%, rgba(255, 255, 255, 0.14) 100%);
    }

    .erp-login-form-area {
        width: 100%;
        justify-content: center;
    }

    .erp-login-panel {
        width: min(100%, 470px);
        padding: 28px 24px 24px;
        border-radius: 28px;
        background:
            radial-gradient(circle at 15% 7%, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.00) 31%),
            linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.78) 100%);
    }

    .erp-login-panel::before {
        border-radius: 23px;
    }

    .erp-login-eyebrow {
        margin-bottom: 21px;
    }

    .erp-login-panel-header {
        margin-bottom: 22px;
    }

    .erp-login-panel-header h2 {
        font-size: 2.08rem;
    }

    .erp-login-panel-header p {
        font-size: 0.94rem;
    }

    .erp-login-form {
        gap: 15px;
    }

    .erp-login-input {
        min-height: 54px;
        font-size: 0.94rem;
    }

    .erp-login-submit {
        min-height: 56px;
        font-size: 0.98rem;
    }

    .erp-login-submit i {
        width: 43px;
        height: 43px;
    }

    .erp-login-divider {
        margin: 21px 0 16px;
    }

    .erp-login-support-icon {
        width: 42px;
        height: 42px;
    }

    .erp-login-support-copy {
        font-size: 0.86rem;
    }

    .erp-login-footer-security {
        font-size: 0.80rem;
    }
}

@media (max-width: 560px) {
    .erp-login-stage {
        align-items: flex-end;
        padding: 14px 12px 18px;
        background-size: auto calc(100% + 130px);
        background-position: 9% -118px;
    }

    .erp-login-stage::after {
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.34) 46%, rgba(255, 255, 255, 0.76) 100%);
    }

    .erp-login-panel {
        width: 100%;
        padding: 23px 18px 19px;
        border-radius: 24px;
    }

    .erp-login-panel::before {
        inset: 6px;
        border-radius: 19px;
    }

    .erp-login-eyebrow {
        gap: 10px;
        margin-bottom: 18px;
        font-size: 0.80rem;
    }

    .erp-login-eyebrow-pill {
        min-height: 27px;
        padding: 0 10px;
    }

    .erp-login-panel-header {
        margin-bottom: 19px;
    }

    .erp-login-panel-header h2 {
        font-size: 1.9rem;
        letter-spacing: -0.045em;
    }

    .erp-login-panel-header p {
        font-size: 0.88rem;
    }

    .erp-login-field label {
        margin-bottom: 7px;
        font-size: 0.86rem;
    }

    .erp-login-form {
        gap: 14px;
    }

    .erp-login-input {
        min-height: 52px;
        padding-left: 44px;
        padding-right: 48px;
        border-radius: 14px;
        font-size: 0.9rem;
    }

    .erp-login-input-icon {
        left: 15px;
    }

    .erp-login-password-toggle {
        right: 9px;
        width: 36px;
        height: 36px;
    }

    .erp-login-submit {
        min-height: 54px;
        padding-right: 60px;
        border-radius: 15px;
        font-size: 0.95rem;
    }

    .erp-login-submit i {
        width: 40px;
        height: 40px;
        right: 6px;
        border-radius: 12px;
    }

    .erp-login-divider {
        margin: 18px 0 14px;
    }

    .erp-login-support {
        gap: 11px;
        align-items: flex-start;
        margin-bottom: 14px;
    }

    .erp-login-support-icon {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }

    .erp-login-support-copy {
        font-size: 0.82rem;
    }

    .erp-login-footer-security {
        gap: 8px;
        font-size: 0.76rem;
        line-height: 1.38;
    }
}

@media (max-height: 680px) and (max-width: 840px) {
    .erp-login-stage {
        align-items: center;
        padding-top: 16px;
        padding-bottom: 16px;
        background-size: auto calc(100% + 80px);
        background-position: 10% -62px;
    }

    .erp-login-panel {
        padding-top: 20px;
        padding-bottom: 18px;
    }

    .erp-login-eyebrow {
        margin-bottom: 14px;
    }

    .erp-login-panel-header {
        margin-bottom: 16px;
    }

    .erp-login-divider {
        margin: 16px 0 12px;
    }
}
