/* =========================================================
   LOGIN MINERÍA 4.0
   Peru Controls System
   ========================================================= */

:root {
    --mining-yellow: #ffc400;
    --mining-yellow-light: #ffd94a;
    --mining-yellow-dark: #d99b00;
    --login-black: #080908;
    --login-panel: rgba(10, 11, 9, 0.94);
    --login-border: rgba(255, 196, 0, 0.55);
    --text-primary: #ffffff;
    --text-secondary: #c9c9c9;
}

/* =========================================================
   BASE
   ========================================================= */
* {
    box-sizing: border-box;
}
html, body {
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
body {
    font-family: "Inter", sans-serif;
    background: #050505;
    color: #fff;
}
.login-page {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
}

/* =========================================================
   IMAGEN DE FONDO
   ========================================================= */
.login-background {
    position: absolute;
    inset: 0;
    z-index: -5;
    background-image:url("../../img//inicio/login/fondo.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transform: scale(1.02);
}
/* Oscurece sin matar el amarillo */
.login-overlay {
    position: absolute;
    inset: 0;
    z-index: -4;
}
/* Viñeta exterior */
.login-vignette {
    position: absolute;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    box-shadow:inset 0 0 160px rgba(0, 0, 0, .72),
        inset 0 -150px 160px rgba(0, 0, 0, .55);
}
/* =========================================================
   LOGIN CENTRAL
   ========================================================= */
.login-main {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 20px 65px;
}
/* =========================================================
   TARJETA
   ========================================================= */
.login-card {
    width: min(530px, calc(100vw - 40px));
    padding: 18px 20px 14px;
    background:linear-gradient(145deg,rgba(18, 19, 16, .97),rgba(7, 8, 7, .97));
    border: 1px solid rgba(255, 196, 0, .60);
    border-radius: 17px;
    box-shadow: 0 35px 90px rgba(0, 0, 0, .68), 0 0 0 1px rgba(255,255,255,.025) inset, 0 0 32px rgba(255, 183, 0, .06);
    backdrop-filter: blur(12px);
}

/* =========================================================
   HEADER
   ========================================================= */
.login-header {
    margin-bottom: 24px;
}
.welcome-text {
    margin-bottom: 7px;
}
.mining-title {
    margin-top: 11px;
}
.login-description {
    margin-top: 13px;
}
.field {
    margin-bottom: 16px;
}
.input-wrap input {
    height: 52px;
}
.login-actions {
    margin-top: 20px;
}
.btn-login {
    height: 54px;
}
.guest-separator {
    margin: 13px 0;
}
.guest-button {
    min-height: 62px;
}
.login-card-footer {
    margin-top: 18px;
    padding-top: 16px;
}
.mining-footer-title {
    bottom: 18px;
}
/* =========================================================
   MINERÍA 4.0
   ========================================================= */
.mining-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 15px;
}
.mining-title span {
    display: block;
    width: 62px;
    height: 2px;
    background:linear-gradient( 90deg, transparent,var(--mining-yellow));
}
.mining-title span:last-child {
    background:linear-gradient( 90deg,var(--mining-yellow),transparent);
}
.mining-title strong {
    font-family: "Rajdhani", sans-serif;
    font-size: 32px;
    line-height: 1;
    letter-spacing: 1px;
    color: var(--mining-yellow);
}
.login-description {
    margin: 18px 0 0;
    color: #d0d0d0;
    font-size: 13px;
}

/* =========================================================
   CAMPOS
   ========================================================= */
.login-form {
    width: 100%;
}
.field {
    margin-bottom: 21px;
}
.field label {
    display: block;
    margin: 0 0 9px;
    font-family: "Rajdhani", sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #f5f5f5;
}
.input-wrap {
    position: relative;
    width: 100%;
}
.input-wrap input {
    width: 100%;
    height: 55px;
    padding: 0 52px 0 50px;
    outline: none;
    border: 1px solid rgba(255,255,255,.26);
    border-radius: 6px;
    color: #fff;
    background: linear-gradient( 180deg, rgba(22,23,21,.95), rgba(12,13,12,.96) );
    font-family: "Inter", sans-serif;
    font-size: 14px;
    transition:border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.input-wrap input::placeholder {
    color: #868686;
}
.input-wrap input:hover {
    border-color: rgba(255,255,255,.40);
}
.input-wrap input:focus {
    border-color: var(--mining-yellow);
    box-shadow: 0 0 0 3px rgba(255,196,0,.08), 0 0 18px rgba(255,196,0,.08);
}
/* =========================================================
   ICONOS INPUT
   ========================================================= */
.field-icon {
    position: absolute;
    left: 17px;
    top: 50%;
    width: 21px;
    height: 21px;
    transform: translateY(-50%);
    z-index: 2;
}

/* Icono persona */
.user-icon::before {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    left: 6px;
    top: 0;
    border: 2px solid var(--mining-yellow);
    border-radius: 50%;
}
.user-icon::after {
    content: "";
    position: absolute;
    width: 17px;
    height: 9px;
    left: 1px;
    bottom: 0;
    border:2px solid var(--mining-yellow);
    border-bottom: 0;
    border-radius:10px 10px 0 0;
}
/* Candado */
.lock-icon::before {
    content: "";
    position: absolute;
    left: 5px;
    bottom: 1px;
    width: 12px;
    height: 12px;
    border: 2px solid var(--mining-yellow);
    border-radius: 2px;
}
.lock-icon::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 0;
    width: 8px;
    height: 10px;
    border:2px solid var(--mining-yellow);
    border-bottom: 0;
    border-radius:7px 7px 0 0;
}
/* Mostrar contraseña */
.toggle-visibility {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: #d0d0d0;
    cursor: pointer;
}
.toggle-visibility svg {
    width: 19px;
    height: 19px;
}
.toggle-visibility:hover {
    color: var(--mining-yellow);
}
/* =========================================================
   OPCIONES LOGIN
   ========================================================= */
.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 3px;
    font-size: 12px;
}
.remember-option {
    position: relative;
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
    cursor: pointer;
}
.remember-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.custom-checkbox {
    width: 17px;
    height: 17px;
    border: 1px solid #858585;
    border-radius: 3px;
    background: rgba(255,255,255,.02);
    transition: .2s ease;
}
.remember-option input:checked + .custom-checkbox {
    border-color: var(--mining-yellow);
    background: var(--mining-yellow);
    box-shadow: 0 0 10px rgba(255,196,0,.25);
}
.remember-option input:checked + .custom-checkbox::after {
    content: "";
    display: block;
    width: 4px;
    height: 8px;
    margin:2px auto 0;
    border:solid #090909;
    border-width:0 2px 2px 0;
    transform: rotate(45deg);
}
.forgot-password {
    color: var(--mining-yellow);
    text-decoration: none;
    font-size: 12px;
    transition: .2s;
}
.forgot-password:hover {
    color: #ffe174;
    text-shadow: 0 0 10px rgba(255,196,0,.35);
}
/* =========================================================
   BOTÓN INICIAR SESIÓN
   ========================================================= */
.login-actions {
    margin-top: 27px;
}
.btn-login {
    position: relative;
    width: 100%;
    height: 57px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 6px;
    outline: none;
    background:linear-gradient(90deg, #ffbe00,#ffd21f, #ffc400 );
    color: #080808;
    font-family: "Rajdhani", sans-serif;
    font-size: 19px;
    font-weight: 700;
    cursor: pointer;
    box-shadow:0 10px 25px rgba(255,174,0,.15);
    transition: transform .2s ease,box-shadow .2s ease,filter .2s ease;
}
.btn-login:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow:0 15px 30px rgba(255,174,0,.25);
}
.btn-login:active {
    transform: translateY(0);
}
.login-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-52%);
    font-size: 31px;
    font-weight: 400;
}
/* =========================================================
   SEPARADOR
   ========================================================= */
.guest-separator {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 17px 0;
}
.guest-separator span {
    flex: 1;
    height: 1px;
    background:linear-gradient(90deg,transparent,rgba(255,255,255,.16));
}
.guest-separator span:last-child {
    background:linear-gradient( 90deg, rgba(255,255,255,.16),transparent);
}
.guest-separator strong {
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 500;
    color: #fff;
    background: #10110f;
}
/* =========================================================
   INVITADO
   ========================================================= */
.guest-button {
    width: 100%;
    min-height: 69px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 17px;
    padding: 10px 20px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 6px;
    outline: none;
    color: #fff;
    background:linear-gradient(180deg,rgba(19,20,18,.96), rgba(10,11,10,.96));
    cursor: pointer;
    transition: .2s ease;
}

.guest-button:hover {
    border-color: rgba(255,196,0,.70);
    background:rgba(255,196,0,.035);
    box-shadow:inset 0 0 25px rgba(255,196,0,.025);
}
.guest-icon {
    color: var(--mining-yellow);
    font-size: 30px;
}
.guest-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}
.guest-text strong {
    font-family: "Rajdhani", sans-serif;
    font-size: 17px;
}
.guest-text span {
    color: #aaa;
    font-size: 12px;
}
/* =========================================================
   FOOTER LOGIN CARD
   ========================================================= */
.login-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 27px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.07);
    color: #aaa;
    font-size: 11px;
}
.secure-login {
    display: flex;
    align-items: center;
    gap: 7px;
}
.secure-login strong {
    padding: 3px 7px;
    border-radius: 8px;
    background: var(--mining-yellow);
    color: #111;
    font-size: 9px;
}
.lock-small {
    color: #ddd;
}
/* =========================================================
   LOGO / MARCA IZQUIERDA
   ========================================================= */
.mining-brand {
    position: absolute;
    z-index: 5;
    top: 50px;
    left: clamp(30px, 4vw, 80px);
    width: 280px;
}
.brand-logo {
    margin-bottom: 12px;
}
.brand-symbol {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    font-family: "Rajdhani", sans-serif;
    font-weight: 700;
    font-size: 27px;
    color: #fff;
    border: 4px solid #fff;
    background:linear-gradient( 135deg, var(--mining-yellow) 0 50%, #fff 50% 100%);
    clip-path: polygon( 50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25% );
    text-shadow:0 2px 3px rgba(0,0,0,.6);
}

.brand-name {
    display: flex;
    flex-direction: column;
    font-family: "Rajdhani",sans-serif;
    font-weight: 700;
    line-height: .95;
    text-shadow:0 3px 10px rgba(0,0,0,.5);
}
.brand-name span,
.brand-name strong {
    font-size: clamp(31px, 3vw, 43px);
}
.brand-name strong {
    color: var(--mining-yellow);
}
.brand-sector {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 17px;
    font-family: "Rajdhani", sans-serif;
    font-size: 19px;
    letter-spacing: 1px;
}

.brand-sector i {
    width: 30px;
    height: 2px;
    background: var(--mining-yellow);
}
/* =========================================================
   TEXTO INFERIOR
   ========================================================= */
.mining-footer-title {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 37px;
    transform: translateX(-50%);
    width:min(1180px, 86vw);
    display:flex;
    align-items: center;
    gap: 30px;
}
.mining-footer-title > span {
    flex: 1;
    height: 1px;
    background:linear-gradient( 90deg, transparent, var(--mining-yellow));
}
.mining-footer-title > span:last-child {
    background:linear-gradient(90deg, var(--mining-yellow), transparent);
}
.mining-footer-title strong {
    white-space: nowrap;
    font-family:"Rajdhani", sans-serif;
    color: var(--mining-yellow);
    font-size: clamp(15px, 2vw, 27px);
    letter-spacing: 7px;
    text-shadow: 0 0 15px rgba(255,196,0,.25);
}
/* =========================================================
   ELEMENTOS TECNOLÓGICOS
   ========================================================= */
.floating-tech {
    position: absolute;
    z-index: 2;
    display:flex;
    align-items:center;
    justify-content:center;
    color: rgba(255,196,0,.64);
    border: 1px solid rgba(255,196,0,.24);
    border-radius:50%;
    pointer-events:none;
    box-shadow:0 0 45px rgba(255,196,0,.06);
}
.floating-tech-1 {
    width: 150px;
    height: 150px;
    right: 16%;
    top: 15%;
    font-family:"Rajdhani",sans-serif;
    font-size:48px;
    font-weight: 700;
}
.floating-tech-2 {
    width: 70px;
    height: 70px;
    right: 5%;
    top: 7%;
    font-size: 35px;
}
/* =========================================================
   ALERTAS
   ========================================================= */
.alert {
    margin: 0 0 20px;
    padding:11px 14px;
    border-radius:5px;
    font-size: 12px;
}
.alert-error {
    border: 1px solid rgba(255,70,70,.35);
    background:rgba(150,0,0,.15);
    color: #ffabab;
}
.alert-warn {
    border:1px solid rgba(255,196,0,.35);
    background: rgba(255,196,0,.08);
    color: #ffe18a;
}
/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1200px) {
    .mining-brand {
        left: 30px;
        transform: scale(.82);
        transform-origin: top left;
    }
    .floating-tech {
        opacity:.45;
    }
}

@media (max-width: 900px) {
    .mining-brand {
        display: none;
    }
    .floating-tech {
        display: none;
    }
    .login-background {
        background-position: 58% center;
    }
    .login-main {
        padding: 35px 18px 90px;
    }
    .mining-footer-title {
        bottom:22px;
    }
    .mining-footer-title strong {
        letter-spacing:3px;
    }
}

@media (max-width: 600px) {
    .login-page {
        align-items: flex-start;
    }
    .login-main {
        padding:25px 14px 75px;
    }
    .login-card {
        padding:29px 22px 25px;
        border-radius:13px;
    }
    .login-header h1 {
    font-size: clamp(20px, 2vw, 26px);
  }
    .mining-title strong {
        font-size:27px;
    }

    .mining-title span {
        width:35px;
    }

    .login-options {
        align-items: flex-start;
        flex-direction:column;
        gap:12px;
    }

    .login-card-footer {
        align-items: flex-start;
        flex-direction:column;
        gap:10px;
    }
    .mining-footer-title {
        width:92%;
        gap: 12px;
    }
    .mining-footer-title strong {
        font-size:15px;
        letter-spacing: 2px;
    }
}
/* =========================================================
   RESPONSIVE POR ALTURA
   ========================================================= */
@media (max-height: 900px) {
    .login-card {
        padding: 22px 36px 20px;
    }
    .login-header {
        margin-bottom: 18px;
    }
    .welcome-text {
        font-size: 14px;
        margin-bottom: 5px;
    }
    .login-header h1 {
        font-size: 27px;
    }
    .mining-title {
        margin-top: 8px;
    }
    .mining-title strong {
        font-size: 27px;
    }
    .login-description {
        margin-top: 10px;
        font-size: 12px;
    }
    .field {
        margin-bottom: 13px;
    }
    .field label {
        margin-bottom: 6px;
        font-size: 12px;
    }
    .input-wrap input {
        height: 48px;
    }
    .login-options {
        margin-top: 0;
    }
    .login-actions {
        margin-top: 16px;
    }
    .btn-login {
        height: 49px;
        font-size: 17px;
    }
    .guest-separator {
        margin: 10px 0;
    }
    .guest-separator strong {
        width: 27px;
        height: 27px;
    }
    .guest-button {
        min-height: 57px;
    }
    .guest-text strong {
        font-size: 15px;
    }
    .login-card-footer {
        margin-top: 14px;
        padding-top: 12px;
    }
    .mining-footer-title {
        bottom: 12px;
    }
    .mining-footer-title strong {
        font-size: 18px;
        letter-spacing: 5px;
    }
}
/* =========================================================
   AJUSTE DE ESCALA GENERAL - MÁS COMPACTO EN 100%
   ========================================================= */
.login-card {
    width: min(500px, calc(100vw - 40px));
    padding: 24px 34px 20px;
}
.login-header {
    margin-bottom: 20px;
}
.welcome-text {
    font-size: 14px;
    margin-bottom: 6px;
}
.login-header h1 {
    font-size: clamp(22px, 2.2vw, 28px);
    line-height: 1.05;
}
.mining-title {
    margin-top: 8px;
    gap: 10px;
}
.mining-title strong {
    font-size: clamp(20px, 2vw, 24px);
    letter-spacing: .5px;
}
.mining-title span {
    width: 48px;
    height: 2px;
}
.login-description {
    margin-top: 10px;
    font-size: 12px;
}
.field {
    margin-bottom: 13px;
}
.field label {
    font-size: 12px;
    margin-bottom: 6px;
}
.input-wrap input {
    height: 46px;
    font-size: 13px;
    padding: 0 46px 0 42px;
}
.field-icon {
    width: 18px;
    height: 18px;
    left: 14px;
}
.toggle-visibility {
    width: 30px;
    height: 30px;
    right: 10px;
}
.toggle-visibility svg {
    width: 17px;
    height: 17px;
}
.login-options {
    font-size: 11.5px;
    gap: 12px;
}
.custom-checkbox {
    width: 15px;
    height: 15px;
}
.forgot-password {
    font-size: 11.5px;
}
.login-actions {
    margin-top: 14px;
}
.btn-login {
    height: 48px;
    font-size: 17px;
}
.login-arrow {
    right: 18px;
    font-size: 27px;
}
.guest-separator {
    margin: 10px 0;
}
.guest-separator strong {
    width: 26px;
    height: 26px;
    font-size: 10px;
}
.guest-button {
    min-height: 54px;
    padding: 8px 16px;
    gap: 12px;
}
.guest-icon {
    font-size: 23px;
}
.guest-text strong {
    font-size: 15px;
}
.guest-text span {
    font-size: 11px;
}
.login-card-footer {
    margin-top: 14px;
    padding-top: 12px;
    font-size: 10.5px;
}
.secure-login strong {
    font-size: 8px;
    padding: 2px 6px;
}
/* =========================================================
   BLOQUE IZQUIERDO MÁS PEQUEÑO
   ========================================================= */
.mining-brand {
    width: 220px;
    top: 54px;
    left: clamp(26px, 3vw, 70px);
}
.brand-symbol {
    width: 58px;
    height: 58px;
    font-size: 22px;
    border-width: 3px;
}
.brand-name span,
.brand-name strong {font-size: clamp(24px, 2.2vw, 32px);
}
.brand-sector {
    margin-top: 12px;
    font-size: 14px;
    gap: 8px;
}
.brand-sector i {
    width: 22px;
}
/* =========================================================
   TEXTO INFERIOR MÁS PEQUEÑO
   ========================================================= */
.mining-footer-title {
    bottom: 18px;
    gap: 18px;
}
.mining-footer-title strong {
    font-size: clamp(20px, 1.2vw, 18px);
    letter-spacing: 4px;
}
/* =========================================================
   ELEMENTOS DECORATIVOS MÁS DISCRETOS
   ========================================================= */
.floating-tech-1 {
    width: 120px;
    height: 120px;
    font-size: 38px;
}
.floating-tech-2 {
    width: 58px;
    height: 58px;
    font-size: 28px;
}

