/* ========== TT INTERFACES ========== */
@font-face {
    font-family: 'TT Interfaces';
    src: url('fonts/TTInterfaces-Regular.woff2') format('woff2'),
         url('fonts/TTInterfaces-Regular.woff') format('woff'),
         url('fonts/TTInterfaces-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'TT Interfaces';
    src: url('fonts/TTInterfaces-Medium.woff2') format('woff2'),
         url('fonts/TTInterfaces-Medium.woff') format('woff'),
         url('fonts/TTInterfaces-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'TT Interfaces';
    src: url('fonts/TTInterfaces-SemiBold.woff2') format('woff2'),
         url('fonts/TTInterfaces-SemiBold.woff') format('woff'),
         url('fonts/TTInterfaces-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

/* ========== RESET ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'TT Interfaces', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fff;
    height: 100vh;
    overflow: hidden;
    color: #171618;
}

/* ========== LAYOUT ========== */
.app-container {
    display: flex;
    height: 100vh;
    background: #fff;
}

/* ========== LOGIN PANEL (41.66%) ========== */
.login-panel {
    flex: 0 0 41.66%;
    max-width: 41.66%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow-y: auto;
}

.login-content {
    width: 100%;
    max-width: clamp(325px, calc(41.66vw - 48px), 502px);
    margin: 0 auto;
}

/* Logo */
.login-logo {
    margin: 20px 0 31px;
    text-align: center;
}

.login-logo img {
    width: 126px;
    height: 41px;
    display: inline-block;
}

/* Títulos */
.login-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 25px;
    color: #171618;
    margin-bottom: 16px;
    text-align: center;
}

.login-desc {
    font-size: 14px;
    font-weight: 400;
    line-height: 17.5px;
    color: #454546;
    margin: 0 0 47px 16px;
    width: calc(100% - 16px);
    text-align: left;
}

/* ========== FORMULARIO ========== */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 27px;
    margin-left: 16px;
    width: calc(100% - 16px);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-group label {
    font-size: 12px;
    font-weight: 400;
    line-height: 15px;
    color: #171618;
}

.form-group input {
    width: 100%;
    height: 38px;
    padding: 10.5px 14px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    line-height: 19px;
    font-family: inherit;
    color: #454546;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input::placeholder {
    color: #454546;
    opacity: 0.65;
}

.form-group input:focus {
    border-color: #171618;
}

/* Input password */
.input-password {
    position: relative;
}

.input-password input {
    padding-right: 44px;
}

.toggle-pass {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-pass-icon {
 
    display: block;
}

.forgot-link {
    align-self: flex-end;
    margin-top: 4px;
    font-size: 12px;
    line-height: 15px;
    color: #171618;
    text-decoration: none;
    font-weight: 400;
    position: relative;
}

.forgot-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.forgot-link:hover::after {
    transform: scaleX(1);
}

/* hCaptcha emulado */
.hcaptcha-mock {
    width: 100%;
    max-width: 325px;
    height: 76px;
    margin: 20px auto 0;
    padding: 0 12px 0 10px;
    border: 1px solid #dadada;
    border-radius: 4px;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
    align-self: center;
}

.hcaptcha-mock.is-verified {
    width: 100%;
    max-width: 325px;
}

.hcaptcha-check {
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    text-align: left;
}

.hcaptcha-mock.is-verified .hcaptcha-check {
    cursor: default;
}

.hcaptcha-box {
    width: 28px;
    height: 28px;
    border: 2px solid #555;
    border-radius: 3px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.2s ease;
}

.hcaptcha-mock.is-loading .hcaptcha-box {
    border-color: #00838f;
}

.hcaptcha-mock.is-verified .hcaptcha-box {
    border: none;
    background: transparent;
    width: 28px;
    height: 28px;
    border-radius: 0;
}

.hcaptcha-label {
    font-size: 14px;
    line-height: 17.5px;
    color: #171618;
    font-weight: 400;
    user-select: none;
}

.hcaptcha-spinner {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00838f;
    animation: hcaptcha-spinner-pulse 0.75s ease-in-out infinite;
}

@keyframes hcaptcha-spinner-pulse {
    0%, 100% {
        transform: scale(0.55);
        opacity: 0.35;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
}

.hcaptcha-check-img {
    width: 29px;
    height: 24px;
    display: block;
}

.hcaptcha-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-align: center;
}

.hcaptcha-brand-img {
    width: auto;
    height: auto;
    max-width: none;
    display: block;
    flex-shrink: 0;
    image-rendering: auto;
}

.hcaptcha-brand-links {
    margin-top: 1px;
    font-size: 9px;
    line-height: 1.2;
    color: #555;
    white-space: nowrap;
}

/* Botón login */
.btn-login {
    width: 100%;
    height: 40px;
    min-height: 40px;
    margin-top: 20px;
    padding: 0 32px;
    background: #f0f0f0;
    color: #969696;
    border: 1px solid #f0f0f0;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 600;
    line-height: 17.5px;
    font-family: inherit;
    cursor: not-allowed;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
    pointer-events: none;
}

.btn-login.active {
    background: #242326;
    color: #fff;
    border-color: #242326;
    cursor: pointer;
    pointer-events: auto;
}

.btn-login.active:hover {
    background: #747374;
    border-color: #747374;
}

/* Link registro */
.register-link {
    text-align: center;
    font-size: 14px;
    line-height: 17.5px;
    color: #454546;
    margin-top: 15px;
}

.register-link a {
    color: #171618;
    font-weight: 600;
    text-decoration: none;
    position: relative;
}

.register-link a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.register-link a:hover::after {
    transform: scaleX(1);
}

/* Footer login */
.login-footer {
    margin-top: 91px;
    text-align: center;
}

.footer-social-img {
    width: 185px;
    max-width: 100%;
    height: auto;
}

/* ========== SLIDER PANEL (58.34%) ========== */
.slider-panel {
    flex: 0 0 58.34%;
    max-width: 58.34%;
    padding: 24px 24px 24px 0;
    background: #fff;
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.slider-inner {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 24px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.slider-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.slider-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.slider-slide.active {
    opacity: 1;
    z-index: 1;
}

.slider-slide-frame {
    position: relative;
    width: min(100%, 682px);
    aspect-ratio: 682 / 512;
    flex-shrink: 0;
}

.slider-slide-frame img {
    width: 100%;
    height: 100%;
    display: block;
}

.slide-caption-top,
.slide-card-title,
.slide-card-desc {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: min(78%, 420px);
    text-align: center;
    padding: 0 16px;
    pointer-events: none;
    z-index: 2;
    margin: 0;
}

.slide-caption-top {
    top: 18.2%;
    left: 0;
    right: 0;
    transform: none;
    width: auto;
    padding: 0 24px;
}

.slide-title {
    margin: 0 0 6px;
    font-size: 40px;
    font-weight: 600;
    line-height: 1.1;
    color: #fff;
}

.slide-subtitle {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
}

.slide-card-title {
    top: 70.7%;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.25;
    color: #fff;
}

.slide-card-desc {
    top: 83.6%;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
    color: #fff;
}

/* Dots */
.slider-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    padding: 0;
    transition: background 0.3s;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.slider-dot.active {
    background: #fff;
}

/* Loading overlay (clonado de app.kapital.com) */
body.login-is-loading {
    overflow: hidden;
}

.login-loading-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
}

.login-loading-backdrop[hidden] {
    display: none;
}

.login-loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
}

.login-loading-logo {
    display: block;
}

.login-loading-title {
    margin: 2.5rem 0 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    color: #fff;
}

.login-loading-subtitle {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.43;
    color: #fff;
}

.svgSections {
    animation: kapital-loading-appear linear infinite;
}

@keyframes kapital-loading-appear {
    40% {
        fill: #b7bfc9;
    }
    100% {
        fill: rgba(0, 0, 0, 0);
    }
}

/* Token step — reemplaza el formulario dentro de .login-content */
.token-step[hidden] {
    display: none;
}

.login-step[hidden] {
    display: none;
}

.token-panel {
    width: 100%;
}

.token-panel-box {
    background: #b8b8b8;
    padding: 24px 20px 16px;
    box-sizing: border-box;
}

.token-panel-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.token-panel-icon {
    flex: 0 0 auto;
}

.token-panel-main {
    flex: 1 1 auto;
    min-width: 0;
}

.token-panel-phrase {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.4;
    color: #1a1a1a;
}

.token-panel-phrase strong {
    font-weight: 700;
}

.token-panel-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.token-panel-label {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
}

.token-panel-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.token-panel-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #9a9a9a;
    border-radius: 2px;
    background: #fff;
    font-size: 14px;
    color: #1a1a1a;
}

.token-panel-input:focus {
    outline: 2px solid #465364;
    outline-offset: 1px;
}

.token-panel-btn {
    flex: 0 0 auto;
    min-width: 88px;
    height: 34px;
    padding: 0 16px;
    border: none;
    border-radius: 2px;
    background: #1a1a1a;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.token-panel-btn:hover {
    background: #333236;
}

.token-panel-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.token-panel-disclaimer {
    margin: 16px 0 0;
    font-size: 11px;
    line-height: 1.45;
    color: #666;
}

.token-panel-warning {
    margin-top: 20px;
    font-size: 12px;
    line-height: 1.55;
    color: #171618;
}

.token-panel-warning p {
    margin: 0 0 10px;
}

.token-panel-warning ul {
    margin: 0 0 10px 20px;
    padding: 0;
}

.token-panel-warning li {
    margin-bottom: 4px;
}
