/* =========================================================
   Login EcoGestor / HSE Tool
   Estilo Eurofins
   ========================================================= */

:root {
    --eurofins-blue: #003883;
    --eurofins-blue-90: #1A317F;
    --eurofins-blue-80: #33478D;
    --eurofins-blue-20: #CCD1E2;
    --eurofins-blue-10: #E5E7F0;

    --eurofins-orange: #EE7D11;
    --eurofins-orange-accessible: #E3660E;
    --eurofins-orange-10: #FDF0E8;

    --eco-text: #2f3542;
    --eco-muted: #697386;
    --eco-border: #dfe3ef;
    --eco-bg: #f5f7fb;
    --eco-white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 8% 10%, rgba(238, 125, 17, 0.10) 0, transparent 26%),
        radial-gradient(circle at 88% 16%, rgba(0, 56, 131, 0.12) 0, transparent 30%),
        linear-gradient(135deg, #ffffff 0%, #f5f7fb 48%, #e5e7f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: var(--eco-text);
}

/* =========================================================
   Contenedor principal
   ========================================================= */

.login-wrapper {
    width: min(94vw, 1120px);
    min-height: 610px;
    display: flex;
    border-radius: 22px;
    overflow: hidden;
    background: var(--eco-white);
    border: 1px solid rgba(204, 209, 226, 0.95);
    box-shadow: 0 24px 70px rgba(0, 56, 131, 0.18);
}

/* =========================================================
   Panel izquierdo
   ========================================================= */

.login-brand {
    width: 48%;
    padding: 54px 60px;
    background:
        linear-gradient(135deg, rgba(0, 56, 131, 0.96) 0%, rgba(0, 56, 131, 1) 58%, rgba(26, 49, 127, 1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

/* LÃ­nea tipo barcode Eurofins */
.login-brand::before {
    content: "";
    position: absolute;
    top: 0;
    left: 42px;
    width: 116px;
    height: 8px;
    background:
        linear-gradient(
            90deg,
            #ffffff 0 6px,
            transparent 6px 10px,
            #EE7D11 10px 18px,
            transparent 18px 23px,
            #99A3C6 23px 29px,
            transparent 29px 36px,
            #ffffff 36px 45px,
            transparent 45px 51px,
            #EE7D11 51px 61px,
            transparent 61px 66px,
            #CCD1E2 66px 72px,
            transparent 72px 79px,
            #ffffff 79px 88px,
            transparent 88px 94px,
            #EE7D11 94px 103px,
            transparent 103px 109px,
            #ffffff 109px 116px
        );
    opacity: 0.95;
}

/* Motivo decorativo suave */
.login-brand::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -90px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.22) 0 9px, transparent 10px),
        radial-gradient(circle at 56% 24%, rgba(238, 125, 17, 0.85) 0 11px, transparent 12px),
        radial-gradient(circle at 44% 50%, rgba(255, 255, 255, 0.22) 0 13px, transparent 14px),
        radial-gradient(circle at 66% 56%, rgba(255, 255, 255, 0.18) 0 10px, transparent 11px),
        radial-gradient(circle at 30% 72%, rgba(238, 125, 17, 0.55) 0 12px, transparent 13px);
    opacity: 0.55;
}

.brand-logo,
.brand-title,
.brand-text,
.brand-points {
    position: relative;
    z-index: 2;
}

.brand-logo {
    margin-bottom: 44px;
}

.brand-logo img {
    max-width: 460px;
    width: 100%;
    height: auto;
    display: block;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.brand-title {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.18;
    margin-bottom: 18px;
    color: #ffffff;
}

.brand-text {
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.86);
    max-width: 440px;
}

.brand-points {
    margin-top: 30px;
    list-style: none;
}

.brand-points li {
    font-size: 14px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.90);
    margin-bottom: 13px;
    padding-left: 24px;
    position: relative;
}

.brand-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--eurofins-orange);
    box-shadow: 0 0 0 4px rgba(238, 125, 17, 0.18);
}

/* =========================================================
   Panel derecho
   ========================================================= */

.login-panel {
    width: 52%;
    background: #ffffff;
    padding: 58px 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-box {
    width: 100%;
    max-width: 410px;
}

.login-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--eurofins-orange-accessible);
    font-size: 12px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 12px;
}

.login-kicker::before {
    content: "";
    width: 22px;
    height: 3px;
    border-radius: 999px;
    background: var(--eurofins-orange);
}

.login-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--eurofins-blue);
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 14px;
    color: var(--eco-muted);
    line-height: 1.55;
    margin-bottom: 28px;
}

/* =========================================================
   Mensajes
   ========================================================= */

.alert-error {
    background: #fff3f1;
    color: #b42318;
    border: 1px solid #ffd1cc;
    border-left: 4px solid #d92d20;
    padding: 13px 15px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.45;
}

.alert-info {
    background: #eef4ff;
    color: var(--eurofins-blue);
    border: 1px solid var(--eurofins-blue-20);
    border-left: 4px solid var(--eurofins-blue);
    padding: 13px 15px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.45;
}

/* =========================================================
   Formulario
   ========================================================= */

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 13px;
    color: var(--eurofins-blue);
    margin-bottom: 8px;
    font-weight: 700;
}

.form-input {
    width: 100%;
    height: 48px;
    border-radius: 10px;
    border: 1px solid var(--eco-border);
    background: #ffffff;
    color: var(--eco-text);
    padding: 0 14px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.form-input::placeholder {
    color: #9aa3b5;
    font-style: italic;
}

.form-input:focus {
    border-color: var(--eurofins-blue);
    box-shadow: 0 0 0 3px rgba(0, 56, 131, 0.14);
    background: #ffffff;
}

/* BotÃ³n principal: naranja = acciÃ³n clicable */
.btn-login {
    width: 100%;
    min-height: 50px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--eurofins-orange-accessible) 0%, var(--eurofins-orange) 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    box-shadow: 0 12px 24px rgba(238, 125, 17, 0.26);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(238, 125, 17, 0.34);
    filter: brightness(1.02);
}

.btn-login:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(238, 125, 17, 0.24);
}

/* =========================================================
   Ayuda
   ========================================================= */

.login-help-block {
    margin-top: 24px;
    padding: 18px;
    border: 1px solid var(--eco-border);
    border-radius: 14px;
    background: #f8f9fc;
}

.login-help-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--eurofins-blue);
    margin-bottom: 6px;
}

.login-help-title-spaced {
    margin-top: 16px;
}

.login-help-text {
    font-size: 12px;
    line-height: 1.6;
    color: var(--eco-muted);
}

.login-links {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    font-size: 12px;
}

.login-links a {
    color: var(--eurofins-blue);
    text-decoration: none;
    font-weight: 700;
}

.login-links a:hover {
    color: var(--eurofins-orange-accessible);
    text-decoration: underline;
}

.login-links span {
    color: #a0a8b8;
}

/* =========================================================
   Footer
   ========================================================= */

.login-footer {
    margin-top: 18px;
    text-align: center;
    font-size: 12px;
    line-height: 1.45;
    color: #7f8798;
}

/* =========================================================
   Pantallas medianas
   ========================================================= */

@media (max-width: 1400px) {
    body {
        padding: 18px;
    }

    .login-wrapper {
        width: min(95vw, 1040px);
        min-height: 570px;
    }

    .login-brand {
        padding: 46px 44px;
    }

    .login-panel {
        padding: 46px 44px;
    }

    .brand-logo {
        margin-bottom: 34px;
    }

    .brand-logo img {
        max-width: 390px;
        padding: 0;
    }

    .brand-title {
        font-size: 30px;
        margin-bottom: 16px;
    }

    .brand-text {
        font-size: 14px;
        line-height: 1.55;
    }

    .brand-points {
        margin-top: 22px;
    }

    .brand-points li {
        font-size: 13px;
        margin-bottom: 9px;
    }

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

    .form-group {
        margin-bottom: 14px;
    }

    .form-input {
        height: 44px;
    }

    .btn-login {
        min-height: 46px;
    }

    .login-help-block {
        margin-top: 18px;
        padding: 16px;
    }

    .login-help-title {
        font-size: 13px;
    }

    .login-help-text {
        font-size: 11px;
        line-height: 1.5;
    }

    .login-footer {
        margin-top: 14px;
        font-size: 11px;
    }
}

/* =========================================================
   Pantallas bajas
   ========================================================= */

@media (max-height: 820px) and (min-width: 861px) {
    body {
        align-items: flex-start;
        padding-top: 22px;
        padding-bottom: 22px;
    }

    .login-wrapper {
        min-height: auto;
    }

    .login-brand,
    .login-panel {
        padding-top: 36px;
        padding-bottom: 36px;
    }

    .brand-logo {
        margin-bottom: 30px;
    }

    .brand-logo img {
        max-width: 350px;
    }

    .brand-title {
        font-size: 28px;
        margin-bottom: 14px;
    }

    .brand-text {
        font-size: 13px;
        line-height: 1.45;
    }

    .brand-points {
        margin-top: 18px;
    }

    .brand-points li {
        font-size: 12px;
        margin-bottom: 8px;
    }

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

    .form-label {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .form-input {
        height: 42px;
        font-size: 13px;
    }

    .btn-login {
        min-height: 44px;
        font-size: 14px;
    }

    .login-help-block {
        margin-top: 15px;
        padding: 14px;
    }

    .login-help-title {
        font-size: 12px;
    }

    .login-help-text {
        font-size: 11px;
        line-height: 1.45;
    }
}

@media (max-height: 720px) and (min-width: 861px) {
    body {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .login-brand,
    .login-panel {
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .brand-logo {
        margin-bottom: 24px;
    }

    .brand-logo img {
        max-width: 310px;
    }

    .brand-title {
        font-size: 25px;
    }

    .brand-text {
        font-size: 12px;
        line-height: 1.4;
    }

    .brand-points li {
        font-size: 11px;
        margin-bottom: 6px;
    }

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

    .form-group {
        margin-bottom: 11px;
    }

    .form-input {
        height: 40px;
    }

    .btn-login {
        min-height: 42px;
    }

    .login-help-block {
        margin-top: 12px;
        padding: 12px;
    }

    .login-help-title-spaced {
        margin-top: 10px;
    }

    .login-footer {
        font-size: 10px;
    }
}

/* =========================================================
   Tablet y mÃ³vil
   ========================================================= */

@media (max-width: 860px) {
    body {
        align-items: flex-start;
        padding: 18px;
    }

    .login-wrapper {
        width: 100%;
        min-height: auto;
        flex-direction: column;
        border-radius: 18px;
    }

    .login-brand,
    .login-panel {
        width: 100%;
    }

    .login-brand {
        padding: 34px 28px;
    }

    .login-panel {
        padding: 34px 28px;
    }

    .brand-logo {
        margin-bottom: 28px;
    }

    .brand-logo img {
        max-width: 340px;
    }

    .brand-title {
        font-size: 28px;
    }

    .brand-text {
        font-size: 14px;
    }

    .brand-points {
        margin-top: 20px;
    }

    .login-box {
        max-width: none;
    }
}

@media (max-width: 520px) {
    body {
        padding: 12px;
    }

    .login-wrapper {
        border-radius: 14px;
    }

    .login-brand {
        padding: 28px 22px;
    }

    .login-panel {
        padding: 28px 22px;
    }

    .brand-logo {
        margin-bottom: 24px;
    }

    .brand-logo img {
        max-width: 270px;
        padding: 0;
    }

    .brand-title {
        font-size: 24px;
    }

    .brand-text {
        font-size: 13px;
        line-height: 1.5;
    }

    .brand-points li {
        font-size: 12px;
    }

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

    .login-subtitle {
        font-size: 13px;
    }

    .login-links {
        gap: 6px;
    }
}

.form-input-error {
    border-color: #b42318 !important;
    box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.10);
}

.field-errors {
    margin-top: 6px;
    color: #b42318;
    font-size: 12px;
    line-height: 1.4;
}

.field-errors div {
    color: #b42318;
    margin-top: 2px;
}



.activation-login-link {
    justify-content: center;
    margin-top: 22px;
}

.activation-button-link {
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.activation-button-link:hover {
    color: #ffffff;
    text-decoration: none;
}