/* VisionClick WEB - pantalla de login (app_Login / login03.html) */
:root {
    /* Colores del menu principal de Click ERP (iguales a los dashboards) */
    --vc-navy: #122350;       /* barra de menu */
    --vc-navy-dark: #0c1e3c;  /* barra superior */
    --vc-blue-2: #3d5a99;
    --vc-accent: #f0b429;     /* dorado de acento */
    --vc-accent-2: #d99a12;
    --vc-soft: #edf1f6;       /* fondo de pagina */
    --vc-text: #1a2b45;
    --vc-muted: #6b7489;
    --vc-field: #f3f5f9;
    --vc-line: #dde3ec;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body.vc-body {
    margin: 0;
    font-family: 'Nunito', 'Segoe UI', Roboto, Arial, sans-serif;
    color: var(--vc-text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

.vc-page { display: flex; min-height: 100vh; }

/* ---------- Panel izquierdo ---------- */
.vc-hero {
    position: relative;
    flex: 0 0 50%;
    overflow: hidden;
    background-size: cover;
    background-position: 62% center;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 56px 60px 48px;
}
.vc-hero-shade {
    position: absolute; inset: 0;
    background: linear-gradient(160deg, rgba(12,30,60,.90) 0%, rgba(18,35,80,.72) 45%, rgba(12,30,60,.94) 100%);
}
.vc-hero-shape {
    position: absolute;
    background: linear-gradient(135deg, var(--vc-accent), var(--vc-accent-2));
    opacity: .55;
    transform: rotate(45deg);
    border-radius: 28px;
}
.vc-hero-shape-1 { width: 260px; height: 260px; right: -110px; top: 18%; }
.vc-hero-shape-2 { width: 170px; height: 170px; right: 70px;  bottom: -90px; opacity: .35; }
.vc-hero > *:not(.vc-hero-shade):not(.vc-hero-shape) { position: relative; z-index: 1; }

.vc-badge {
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff;
    border-radius: 14px;
    padding: 12px 18px;
    box-shadow: 0 10px 24px rgba(0,0,0,.25);
}
.vc-badge img { display: block; height: 36px; width: auto; }
.vc-logo { display: block; width: 100%; max-width: 300px; height: auto; }

.vc-hero-text { max-width: 520px; }
.vc-hero-text h1 {
    font-size: 40px; line-height: 1.18; font-weight: 800;
    margin: 0 0 18px; letter-spacing: -.3px;
}
.vc-hero-text h1 span { color: var(--vc-accent); }
.vc-hero-text p { font-size: 17px; line-height: 1.6; margin: 0; color: rgba(255,255,255,.85); }

.vc-hero-foot a { color: rgba(255,255,255,.75); text-decoration: none; font-size: 14px; }
.vc-hero-foot a:hover { color: #fff; }

/* ---------- Panel derecho ---------- */
.vc-side {
    position: relative;
    flex: 1 1 50%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 48px 24px 72px;
    overflow: hidden;
    background: var(--vc-soft);
}
.vc-corner { position: absolute; width: 0; height: 0; }
.vc-corner-tr {
    top: 0; right: 0;
    border-top: 260px solid var(--vc-accent);
    border-left: 240px solid transparent;
    opacity: .9;
}
.vc-corner-bl {
    bottom: 0; left: 0;
    border-bottom: 140px solid var(--vc-navy);
    border-right: 140px solid transparent;
}

.vc-card {
    position: relative; z-index: 1;
    width: 100%; max-width: 460px;
    background: #fff;
    border-radius: 20px;
    padding: 40px 40px 36px;
    box-shadow: 0 24px 60px rgba(12,30,60,.12), 0 2px 6px rgba(12,30,60,.05);
}
.vc-card-logo { margin-bottom: 26px; }
.vc-card h2 { font-size: 26px; font-weight: 800; margin: 0 0 6px; color: var(--vc-navy-dark); }
.vc-sub { margin: 0 0 26px; color: var(--vc-muted); font-size: 15.5px; line-height: 1.5; }

.vc-form { margin: 0; }
.vc-field { position: relative; display: block; margin-bottom: 14px; }
.vc-ico {
    position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
    color: #8a94a8; font-size: 15px; pointer-events: none;
}
.vc-input {
    width: 100%; height: 54px;
    border: 1.5px solid var(--vc-line);
    background: var(--vc-field);
    border-radius: 999px;
    padding: 0 52px 0 50px;
    font: inherit; font-size: 16px; color: var(--vc-text);
    outline: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.vc-input::placeholder { color: #98a2b6; }
.vc-input:focus {
    border-color: var(--vc-accent);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(240,180,41,.25);
}
.vc-field:focus-within .vc-ico { color: var(--vc-navy); }

.vc-eye {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    width: 38px; height: 38px; border: 0; border-radius: 50%;
    background: transparent; color: #8a94a8; cursor: pointer; font-size: 15px;
}
.vc-eye:hover { background: rgba(12,30,60,.06); color: var(--vc-navy); }

.vc-caps {
    display: none; margin: -4px 0 10px 18px;
    font-size: 13px; color: #9a6b00;
}
.vc-caps.on { display: block; }

/* ScriptCase exige <!--SC_REQUIRED_MSG-->; se oculta el texto "* Campos obligatorios" */
.vc-required { display: none; }

.vc-links { text-align: right; margin: 2px 4px 20px; font-size: 14px; }
.vc-links .class-links { display: inline; }
.vc-links a { color: var(--vc-muted); text-decoration: none; }
.vc-links a:hover { color: var(--vc-navy); text-decoration: underline; }

.vc-button {
    width: 100%; height: 52px;
    border: 0; border-radius: 12px;
    background: linear-gradient(180deg, var(--vc-navy) 0%, var(--vc-navy-dark) 100%);
    color: #fff; font: inherit; font-size: 17px; font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(12,30,60,.25);
    transition: transform .1s, box-shadow .15s, filter .15s;
    border-bottom: 3px solid var(--vc-accent);
    -webkit-appearance: none;
}
.vc-button:hover { filter: brightness(1.04); box-shadow: 0 12px 26px rgba(12,30,60,.34); }
.vc-button:active { transform: translateY(1px); }
.vc-button:focus-visible { outline: 3px solid rgba(240,180,41,.6); outline-offset: 2px; }

.vc-copy {
    position: absolute; bottom: 22px; left: 0; right: 0; z-index: 1;
    text-align: center; font-size: 13.5px; color: var(--vc-muted);
}

.vc-sr {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}

/* Mensajes de error de ScriptCase (error.js) */
.alert-message {
    position: fixed; top: 20px; left: 50%; z-index: 9999;
    transform: translate(-50%, calc(-100% - 40px));
    visibility: hidden;
    width: calc(100% - 32px); max-width: 440px;
    background: #fff; color: #991b1b;
    border-left: 5px solid #dc2626;
    border-radius: 12px;
    padding: 14px 44px 14px 18px;
    font-size: 15px; line-height: 1.45;
    box-shadow: 0 16px 40px rgba(0,0,0,.18);
    transition: transform .25s ease, visibility .25s;
}
.alert-message .message { display: block; white-space: pre-line; }
.alert-message.active { transform: translate(-50%, 0); visibility: visible; }
.alert-message .close {
    position: absolute; top: 8px; right: 14px;
    font-size: 22px; color: #9ca3af; cursor: pointer;
}

/* Campo marcado con error por ScriptCase */
.vc-input.scFormInputError, .vc-input.scFormObjectOddError { border-color: #dc2626; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .vc-hero { padding: 44px 40px 40px; }
    .vc-hero-text h1 { font-size: 32px; }
}
@media (max-width: 900px) {
    .vc-hero { display: none; }
    .vc-side { padding: 32px 16px 72px; }
    .vc-corner-tr { border-top-width: 160px; border-left-width: 150px; }
    .vc-corner-bl { border-bottom-width: 90px; border-right-width: 90px; }
}
@media (max-width: 480px) {
    .vc-card { padding: 30px 22px 26px; border-radius: 16px; }
    .vc-card h2 { font-size: 23px; }
    .vc-logo { max-width: 240px; }
    .vc-copy { font-size: 12.5px; padding: 0 16px; }
}
