﻿/* Copia de Assistcargo.Simon.FrontEnd/wwwroot/assets/css/simonmips-loginregister.css en 27fef4741, con otro nombre — ADR-004 (decisiones 14, 15 y 18), US-004.TASK-001 / SPEC-261112-1505 (decision D-1). Sin cambios de reglas. */
/* ============================================================
   SIMON 4.0 - Login / Register Styles (AI-Native-SDLC Redesign)
   Montserrat font family, video background, centered layout
   ============================================================ */

/* --- Montserrat @font-face (solo pesos usados) --- */
@font-face {
    font-family: 'Montserrat';
    src: url('/assets/fonts/Montserrat/static/Montserrat-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat';
    src: url('/assets/fonts/Montserrat/static/Montserrat-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat';
    src: url('/assets/fonts/Montserrat/static/Montserrat-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat';
    src: url('/assets/fonts/Montserrat/static/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ============================================================
   BASE: Fullscreen video background + overlay
   ============================================================ */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: 'Montserrat', sans-serif;
}

body#loginRegisterBody {
    background: #000 !important;
    min-height: 100vh;
    min-height: 100dvh;
}

/*Logos*/
.logosAC {
    margin-top: 200px;
    /*margin-left: 20%;*/
}

/* Fullscreen video - centered, covers entire viewport */
.login-video-bg {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 1;
    object-fit: cover;
}

/* Dark overlay for readability */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    width: 100dvw;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.55);
    z-index: 2;
    pointer-events: none;
}

/* ============================================================
   LANGUAGE SELECTOR (Circular flags)
   ============================================================ */
.language-selector {
    position: fixed;
    top: 24px;
    right: 24px;
    display: flex;
    gap: 12px;
    z-index: 100;
}

.language-flag {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease, transform 0.15s ease;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 0;
}

.language-flag:hover {
    transform: scale(1.1);
}

.language-flag.active {
    border-color: var(--login-primary-color, #14A751);
}

.language-flag img,
.language-flag svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* ============================================================
   MAIN CONTAINER: centered vertically & horizontally
   ============================================================ */
.login-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* Center content inside both login and forgot password bindings */
#LoginFormBind,
#ForgotPasswordFormBind,
.login-center-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ============================================================
   TYPOGRAPHY: Title & Subtitle
   ============================================================ */
.login-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 38px;
    line-height: 1.1;
    color: var(--login-primary-color, #14A751);
    text-align: center;
    margin: 0 0 0 0;
    letter-spacing: -0.5px;
}

.login-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 1.3;
    color: #FFFFFF;
    text-align: center;
    margin: 4px 0 32px 0;
}

/* ============================================================
   FORM: Max width 400px, centered
   ============================================================ */
.login-form-container {
    width: 100% !important;
    max-width: 420px !important;
}

.login-form-container--small {
    max-width: 420px !important;
}

/* Actual input fields */
.login-input,
.login-input.error,
.login-input.valid,
input.login-input.error,
input.login-input.valid {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    height: 46px !important;
    background: rgba(15, 23, 42, 0.70) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 10px !important;
    padding: 0 42px 0 44px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 400 !important;
    font-size: 15px !important;
    color: #e2e8f0 !important;
    outline: none !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    display: block !important;
    margin: 0 !important;
}

.login-input:focus,
.login-input.error:focus,
.login-input.valid:focus {
    border-color: rgba(var(--login-primary-color-rgb, 20, 167, 81), 0.55) !important;
    box-shadow: 0 0 0 3px rgba(var(--login-primary-color-rgb, 20, 167, 81), 0.12) !important;
    background: rgba(15, 23, 42, 0.70) !important;
    color: #e2e8f0 !important;
}

.login-input::placeholder,
.login-input.error::placeholder,
.login-input.valid::placeholder {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    color: #475569 !important;
}

/* Override jQuery Validate border on error */
.login-input.error {
    border-color: rgba(248, 113, 113, 0.6) !important;
}

/* jQuery Validate error messages */
.login-input-group .error,
.login-input-group label.error {
    display: block;
    margin-top: 4px;
    padding: 0;
    color: #f87171 !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    line-height: 1.2;
    background: none !important;
    border: none !important;
}

.login-input:focus {
    border-color: rgba(var(--login-primary-color-rgb, 20, 167, 81), 0.55);
    box-shadow: 0 0 0 3px rgba(var(--login-primary-color-rgb, 20, 167, 81), 0.12);
}

.login-input::placeholder {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #475569;
}

/* Alert / Error box */
.login-alert {
    background: rgba(220, 53, 69, 0.92);
    border: none !important;
    border-radius: 8px !important;
    color: #FFFFFF !important;
    padding: 12px 16px !important;
    margin-bottom: 16px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    text-align: center !important;
}

/* Labels */
.login-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    color: #FFFFFF;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 6px;
}

/* Label row: label left + forgot link right */
.login-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 6px;
}

.login-label-row .login-label {
    margin-bottom: 0;
}

.login-forgot-link--top {
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0.85;
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.login-forgot-link--top:hover {
    color: var(--login-primary-color-light, #17B859);
    opacity: 1;
    text-decoration: underline;
}

/* Input group wrapper */
.login-input-group {
    position: relative;
    margin-bottom: 16px;
}

/* jQuery Validate error messages */
.login-input-group .error,
.login-input-group label.error {
    display: block;
    margin-top: 4px;
    padding: 0;
    color: #f87171 !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    line-height: 1.2;
    background: none !important;
    border: none !important;
}

/* Input icon (left side) */
.login-input-icon {
    position: absolute;
    left: 14px;
    top: 13px;
    width: 20px;
    height: 20px;
    pointer-events: none;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-input-icon svg {
    width: 20px;
    height: 20px;
}

.login-input-icon svg path {
    fill: #64748b;
}

/* Actual input fields */
.login-input {
    width: 100%;
    height: 46px;
    background: #F3F3F3;
    border: none;
    border-radius: 12px;
    padding: 0 42px 0 44px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #333333;
    outline: none;
    box-sizing: border-box;
    transition: box-shadow 0.2s ease;
}

.login-input:focus {
    box-shadow: 0 0 0 2px rgba(var(--login-primary-color-rgb, 20, 167, 81), 0.3);
}

.login-input::placeholder {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #999999;
}

/* Password toggle button (eye icon - right side) */
.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 11px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    width: 24px;
    height: 24px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle-btn svg {
    width: 18px;
    height: 18px;
}

.password-toggle-btn svg path {
    fill: #64748b;
}

/* Password input: extra right padding for eye icon */
.login-input-password {
    padding-right: 42px;
}

/* ============================================================
   OPTIONS ROW: checkbox + forgot password
   ============================================================ */
.login-options {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    margin-top: 4px;
}

.login-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #FFFFFF;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.login-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--login-primary-color, #14A751);
    cursor: pointer;
    margin: 0;
}

.login-forgot-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
    opacity: 0.9;
}

.login-forgot-link:hover {
    color: var(--login-primary-color, #14A751);
    text-decoration: underline;
    opacity: 1;
}

/* ============================================================
   SUBMIT BUTTON
   ============================================================ */
.login-btn-submit {
    width: 100%;
    height: 46px;
    background: linear-gradient(180deg, var(--login-primary-color-light, #17B859) 0%, var(--login-primary-color, #14A751) 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    padding: 0 20px;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 14px rgba(var(--login-primary-color-rgb, 20, 167, 81), 0.25);
}

.login-btn-submit:hover:not(:disabled) {
    background: linear-gradient(180deg, var(--login-primary-color-dark, #119642) 0%, var(--login-primary-color-dark, #119642) 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(var(--login-primary-color-rgb, 20, 167, 81), 0.35);
}

.login-btn-submit:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(var(--login-primary-color-rgb, 20, 167, 81), 0.2);
}

.login-btn-submit:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--login-primary-color-rgb, 20, 167, 81), 0.5), 0 4px 14px rgba(var(--login-primary-color-rgb, 20, 167, 81), 0.25);
}

.login-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Arrow SVG inside button */
.login-btn-arrow {
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.login-btn-submit:hover .login-btn-arrow {
    transform: translateX(3px);
}

.login-btn-arrow svg {
    width: 14px;
    height: 14px;
}

.login-btn-arrow svg path {
    fill: #FFFFFF;
}

/* Arrow SVG inside button */
.login-btn-arrow {
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
}

.login-btn-arrow svg {
    width: 14px;
    height: 14px;
}

.login-btn-submit:active:not(:disabled) {
    background: var(--login-primary-color-dark, #119642);
}

.login-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Arrow SVG inside button */
.login-btn-arrow {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
}

.login-btn-arrow svg {
    width: 20px;
    height: 20px;
}

.login-btn-arrow svg path {
    fill: #FFFFFF;
}

/* ============================================================
   ASSISTCARGO LOGO at top (above title)
   ============================================================ */
.login-ac-logo-top {
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
}

.login-ac-logo-top svg,
.login-ac-logo-top img {
    width: 260px;
    height: auto;
    display: inline-block;
}

/* ============================================================
   LANGUAGE SELECTOR (below login button)
   ============================================================ */
.login-lang-selector {
    margin-top: 28px;
    text-align: center;
}

.login-lang-label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.login-lang-flags {
    display: flex;
    justify-content: center;
    gap: 14px;
}

.login-lang-flags .language-flag {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease, transform 0.15s ease;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 0;
}

.login-lang-flags .language-flag:hover {
    transform: scale(1.1);
}

.login-lang-flags .language-flag.active {
    border-color: var(--login-primary-color, #14A751);
}

.login-lang-flags .language-flag img,
.login-lang-flags .language-flag svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Remove old top-right language selector */
.language-selector {
    display: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
.login-footer {
    margin-top: 28px;
    font-size: 11px;
    color: rgba(148, 163, 184, 0.55);
    font-family: 'Montserrat', sans-serif;
    text-align: center;
}

/* ============================================================
   HELPER: disabled look
   ============================================================ */
.login-input:disabled,
.login-btn-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* ============================================================
   LEGACY CLASS COMPATIBILITY
   Keep old IDs/classes working for existing JS
   ============================================================ */

/* Override old layout.css styles that may conflict */
.login-box {
    max-width: 460px !important;
    margin: 0 auto !important;
    background: transparent !important;
}

.login-box > form {
    background-color: transparent !important;
}

.btn-login {
    background-color: var(--login-primary-color, #14A751) !important;
    border-radius: 0 !important;
}

.login-rounded {
    border-radius: 15px;
}

/* Hide old right-column / left-column layout remnants */
.right-column,
.left-column {
    background: none !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 576px) {
    .login-title {
        font-size: 28px;
    }

    .login-subtitle {
        font-size: 18px;
        margin-bottom: 24px;
    }

    .login-form-container {
        max-width: 100%;
        padding: 0 8px;
    }

    .login-wrapper {
        padding: 24px 12px;
    }

    .login-options {
        gap: 12px;
    }

    .login-ac-logo-top svg {
        width: 200px;
    }

    .login-lang-flags {
        gap: 10px;
    }

    .login-lang-flags .language-flag {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 375px) {
    .login-title {
        font-size: 24px;
    }

    .login-subtitle {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .login-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .login-checkbox-label {
        font-size: 13px;
    }

    .login-forgot-link {
        font-size: 13px;
    }
}

/* ============================================================
   FORGOT PASSWORD / CHANGE PASSWORD BODY
   ============================================================ */
#ForgotPasswordBody,
#changePasswordBody {
    font-family: 'Montserrat', sans-serif;
}

/* ============================================================
   V-CLOAK: hide Vue template until compiled
   ============================================================ */
[v-cloak] {
    display: none;
}
