/* ============================================================
   TCM LOGIN — Identidad visual teal-navy
   ============================================================ */

:root {
    --login-dark:    #0f2027;
    --login-mid:     #203a43;
    --login-light:   #2c5364;
    --login-accent:  #1e8fa5;
    --login-accent-h:#1a7d91;
    --login-muted:   #8ab4c2;
}

/* ── Contenedor general ── */
.login-wrapper {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ── Panel izquierdo (imágenes) ── */
.bg-pic {
    position: relative;
    flex: 1;
}

/* Overlay degradado sobre las imágenes */
.bg-pic::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 32, 39, .82) 0%,
        rgba(32, 58, 67, .70) 50%,
        rgba(44, 83, 100, .60) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Texto del caption sobre el overlay */
.bg-pic .bg-caption {
    position: relative;
    z-index: 2;
}

/* Watermark / texto de fondo */
.bg-pic .bg-caption p,
.bg-pic .bg-caption h3 {
    color: rgba(255,255,255,.75);
    font-size: 13px;
    line-height: 1.6;
}

/* Badge de producto sobre el panel izquierdo */
.bg-pic::after {
    content: 'Trade Compliance Monitor';
    position: absolute;
    top: 36px;
    left: 40px;
    z-index: 3;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,.55);
    border-left: 3px solid var(--login-accent);
    padding-left: 12px;
}

/* ── Panel derecho (formulario) ── */
.login-container.bg-white {
    width: 420px;
    min-width: 380px;
    max-width: 440px;
    background: #ffffff !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: none !important;
    box-shadow: -8px 0 32px rgba(15,32,39,.18);
    position: relative;
    z-index: 10;
    overflow-y: auto;
}

/* Barra de acento superior */
.login-container.bg-white::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--login-dark), var(--login-accent));
}

/* ── Tipografía ── */
.login-container h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--login-dark);
    margin-bottom: 6px;
}

.login-container .small-text.hint-text {
    color: #7a8fa0;
    font-size: 13px;
}

/* ── Inputs ── */
.login-container .form-group-default {
    border-radius: 8px;
    border: 1.5px solid #dde3e8;
    transition: border-color .2s;
}

.login-container .form-group-default:focus-within {
    border-color: var(--login-accent) !important;
    box-shadow: 0 0 0 3px rgba(30,143,165,.10);
}

.login-container .form-group-default label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--login-muted);
    margin-bottom: 2px;
}

.login-container .form-control {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #1a2f3d;
    font-size: 14px;
}

.login-container .form-control::placeholder {
    color: #b0bec5;
    font-size: 13px;
}

/* ── Botón de login ── */
.login-container .btn-primary {
    background: linear-gradient(135deg, var(--login-accent), var(--login-accent-h)) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 28px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: .3px;
    box-shadow: 0 4px 14px rgba(30,143,165,.30) !important;
    transition: transform .18s, box-shadow .18s !important;
    color: #fff !important;
}

.login-container .btn-primary:hover {
    background: linear-gradient(135deg, var(--login-accent-h), #145f72) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(30,143,165,.38) !important;
}

.login-container .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(30,143,165,.25) !important;
}

/* ── Links ── */
.login-container a.normal {
    color: var(--login-accent) !important;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: color .15s;
}

.login-container a.normal:hover {
    color: var(--login-accent-h) !important;
    text-decoration: underline;
}

/* ── Alertas de éxito/error ── */
.login-container .alert-success {
    background-color: rgba(30,143,165,.08);
    border-color: rgba(30,143,165,.25);
    color: var(--login-accent-h);
    border-radius: 8px;
    font-size: 13px;
}

.login-container .alert-danger {
    border-radius: 8px;
    font-size: 13px;
}

/* ── Validación ── */
.login-container .text-danger {
    font-size: 11px;
    margin-top: 3px;
}

/* ── Copyright ── */
.login-container .small-text.normal.hint-text {
    color: #a0b0bc;
    font-size: 11px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .bg-pic { display: none; }
    .login-container.bg-white {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }
}
