:root {
    --primary: #0DCAF0;
    --primary-hover: #0DCAF0;
    --border-light: rgba(255, 255, 255, 0.2);
    --text-muted: #c7d2e0;
    --panel-bg: rgba(68, 86, 110, 0.82);
    --panel-bg-soft: rgba(95, 115, 141, 0.45);
    --panel-border: rgba(170, 190, 220, 0.28);
    --input-bg: #d5dde9;
    --input-text: #576376;
    --tab-text: #b5c2d3;
}

body {
    font-family: "Inter", sans-serif;
    color: #f8fafc;
}

.bg-cover-panama {
    background-size: cover;
    background-position: center;
}

.login-bg-layer {
    filter: blur(2px);
    transform: scale(1.05);
}

.login-container {
    max-width: clamp(360px, 90vw, 520px);
}

.registro-container {
    max-width: clamp(360px, 92vw, 760px);
}

.login-warning-icon {
    font-size: 40px;
}

.login-pin-icon {
    font-size: 18px;
}

.login-subtitle {
    letter-spacing: 0.2em;
    color: #dde5ef !important;
    text-shadow: none;
}

.login-title {
    letter-spacing: 0.08em;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(249, 115, 22, 0.35);
}

.login-label {
    color: var(--text-muted) !important;
    letter-spacing: 0.08em;
}

.login-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid rgba(194, 211, 232, 0.25);
}

.login-tab {
    border: 0;
    background: transparent;
    color: var(--tab-text);
    font-size: 1.1rem;
    padding: 0.5rem 0 0.75rem;
    border-bottom: 3px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.login-tab.active {
    color: #f8fafc;
    border-bottom-color: var(--primary);
}

.login-pane {
    display: none;
}

.login-pane.active {
    display: block;
}

.login-restriction {
    border: 1px solid rgba(13, 202, 240, 0.45) !important;
    background: rgba(13, 202, 240, 0.14);
}

.login-restriction-text {
    color: #d7f6ff;
}

.login-restriction i {
    color: #0DCAF0;
}

.glass-effect {
    background: linear-gradient(180deg, var(--panel-bg) 0%, var(--panel-bg-soft) 100%) !important;

    backdrop-filter: blur(12px) saturate(130%);
    -webkit-backdrop-filter: blur(12px) saturate(130%);

    border: 1px solid var(--panel-border) !important;

    box-shadow: 0 20px 48px rgba(12, 20, 35, 0.42) !important;
}

.glass-effect label,
.glass-effect h1,
.glass-effect p {
    color: inherit;
}

.icon-box {
    width: 78px;
    height: 78px;
    background: var(--primary);
    border-radius: 16px !important;
}

.btn-primary-custom {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    border-radius: 10px;
    line-height: 1;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.btn-primary-custom .small {
    font-size: inherit !important;
}

.btn-primary-custom:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #fff;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(249, 115, 22, 0.2);
}

.required {
    color: #ef4444;
}

.input-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #96a2b3;
}

.input-icon-left {
    left: 12px;
}

.input-icon-right {
    right: 12px;
    cursor: pointer;
}

.input-with-icon {
    padding-left: 42px;
    padding-right: 42px;
    height: 45px;
    border: 0;
    border-radius: 10px;
    background: var(--input-bg);
    color: var(--input-text);
    font-size: 1.15rem;
    font-weight: 600;
}

.input-with-icon::placeholder {
    color: #7e8ba0;
}

.login-footer-line {
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.border-top {
    border-color: rgba(197, 211, 230, 0.24) !important;
}

.text-muted.small {
    color: #c1cedf !important;
}

.login-autoregistro-link {
    color: #ffffff !important;
    text-decoration: underline;
    text-decoration-color: #0DCAF0;
    text-underline-offset: 3px;
}

.yappy-wrapper {
    border: 1px solid rgba(13, 202, 240, 0.3);
    border-radius: 12px;
    background: rgba(13, 202, 240, 0.08);
    padding: 0.75rem;
}

@media (max-width: 575px) {
    .login-tab {
        font-size: 1rem;
    }

    .btn-primary-custom {
        font-size: 1.15rem;
    }
}
