.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Login style based on SOC example */
:root {
    --soc-login-bg: #007f63;
}

.login-layout {
    min-height: 100vh;
}

/* ── Keyframes ────────────────────────────────────────────────────────────── */
@keyframes soc-login-fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes soc-login-bgShift {
    0%, 100% { background-position: 0% 50%; }
    50%       { background-position: 100% 50%; }
}

@keyframes soc-login-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(6px, -8px) scale(1.02); }
    66%       { transform: translate(-4px, 4px) scale(0.98); }
}

@keyframes soc-login-cluster-side {
    0%, 100% { transform: translateX(-50%) scale(0.85); }
    40%, 60%  { transform: translateX(-50%) scale(1.05); }
}

/* ── Página ───────────────────────────────────────────────────────────────── */
.soc-login-page {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #004d38 0%, #006d4e 40%, #008066 100%);
    background-size: 200% 200%;
    animation: soc-login-bgShift 12s ease infinite;
}

.soc-login-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* ── Formas (círculos) ────────────────────────────────────────────────────── */
.soc-login-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    animation: soc-login-float 8s ease-in-out infinite;
}

/* Dimensiones base de cada shape numerado */
.soc-login-shape-1 { width: 140px; height: 140px; animation-delay: 0s; }
.soc-login-shape-2 { width: 140px; height: 140px; animation-delay: -2s; }
.soc-login-shape-3 { width: 140px; height: 140px; animation-delay: -4s; }
.soc-login-shape-4 { width: 140px; height: 140px; animation-delay: -1s; }
.soc-login-shape-5 { width: 140px; height: 140px; animation-delay: -3s; }
.soc-login-shape-6 { width: 140px; height: 140px; animation-delay: -5s; }
.soc-login-shape-7 { width: 140px; height: 140px; animation-delay: -6s; }

/* Shapes sueltos (fuera de cluster) */
.soc-login-shape-8 {
    width: 260px; height: 260px;
    top: 5%; left: -80px;
    animation-delay: -1s;
}
.soc-login-shape-9 {
    width: 180px; height: 180px;
    top: 55%; left: 8%;
    animation-delay: -3s;
}

/* Los shapes 1,2,3,5,6,7 usan pulso de escala (cluster-side) */
.soc-login-shape-1,
.soc-login-shape-2,
.soc-login-shape-3,
.soc-login-shape-5,
.soc-login-shape-6,
.soc-login-shape-7 {
    animation: soc-login-cluster-side 6s ease-in-out infinite;
}

/* ── Clusters ─────────────────────────────────────────────────────────────── */
.soc-login-cluster {
    position: absolute;
}

.soc-login-cluster .soc-login-shape {
    position: absolute;
}

/* Patrón de 7 esferas relativo al centro del cluster */
.soc-login-cluster .soc-login-shape-1 { top: -180px; left: 0; }
.soc-login-cluster .soc-login-shape-2 { top: -80px;  left: -140px; }
.soc-login-cluster .soc-login-shape-3 { top: -80px;  left: 140px; }
.soc-login-cluster .soc-login-shape-4 { top: 0;      left: -70px; }
.soc-login-cluster .soc-login-shape-5 { top: 80px;   left: -140px; }
.soc-login-cluster .soc-login-shape-6 { top: 80px;   left: 140px; }
.soc-login-cluster .soc-login-shape-7 { top: 180px;  left: 0; }

/* Posiciones de los clusters en pantalla */
.soc-login-cluster-1 { top: 50%; left: 65%; transform: translate(-50%, -50%); }
.soc-login-cluster-2 { top: 18%; left: 25%; transform: translate(-50%, -50%) scale(0.8); }
.soc-login-cluster-3 { top: 82%; left: 30%; transform: translate(-50%, -50%) scale(0.9); }
.soc-login-cluster-4 { top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.75); }

.soc-login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 410px;
    border-radius: 14px;
    background: #fff;
    padding: 32px 24px 26px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.2);
    animation: soc-login-fadeUp 0.5s ease both;
}

.soc-login-brand {
    margin-bottom: 18px;
}

.soc-login-logo {
    display: block;
    max-width: 200px;
    width: 100%;
    height: auto;
}

.soc-login-title {
    margin: 0 0 14px;
    color: #006d4e;
    font-size: 31px;
    line-height: 1.1;
    font-weight: 700;
}

.soc-login-validation {
    margin-bottom: 10px;
    color: #bf2323;
    font-size: 13px;
}

.soc-login-validation ul {
    margin: 0;
    padding-left: 18px;
}

.soc-login-field {
    margin-bottom: 12px;
}

.soc-login-input {
    width: 100%;
    min-height: 40px;
    border-radius: 8px;
    border: 1px solid #d7dde1;
    background: #f6f8f9;
    padding: 9px 12px;
    font-size: 14px;
    color: #2c3a40;
}

.soc-login-input:focus {
    outline: none;
    border-color: #0f8868;
    box-shadow: 0 0 0 3px rgba(15, 136, 104, 0.15);
    background: #fff;
}

.soc-login-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 14px;
    font-size: 13px;
    color: #50626b;
}

.soc-login-checkbox {
    width: 14px;
    height: 14px;
    accent-color: #0f8868;
}

.soc-login-error {
    margin-bottom: 10px;
    color: #bf2323;
    font-size: 13px;
}

.soc-login-btn {
    width: 100%;
    border: none;
    border-radius: 8px;
    background: #007a5a;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    min-height: 42px;
    transition: background-color 0.2s ease;
    position: relative;
    overflow: hidden;
}

.soc-login-btn:hover:enabled {
    background: #006a4d;
}

.soc-login-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Shimmer al hover */
.soc-login-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 70%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
    transform: skewX(-18deg);
}

.soc-login-btn:hover:enabled::after {
    animation: soc-login-shimmer 0.65s ease forwards;
}

@keyframes soc-login-shimmer {
    to { left: 150%; }
}

/* ── Entrada escalonada de elementos del card ────────────────────────────── */
.soc-login-brand    { animation: soc-login-fadeUp 0.4s 0.10s ease both; }
.soc-login-title    { animation: soc-login-fadeUp 0.4s 0.20s ease both; }
.soc-login-field    { animation: soc-login-fadeUp 0.4s 0.30s ease both; }
.soc-login-field-2  { animation-delay: 0.40s; }
.soc-login-remember { animation: soc-login-fadeUp 0.4s 0.50s ease both; }
.soc-login-btn      { animation: soc-login-fadeUp 0.4s 0.58s ease both; }
.soc-login-divider  { animation: soc-login-fadeUp 0.4s 0.63s ease both; }
.soc-login-btn-outline { animation: soc-login-fadeUp 0.4s 0.68s ease both; }

.soc-login-divider {
    text-align: center;
    margin-top: 12px;
    color: #c7d1d7;
    font-size: 11px;
}

/* ── Botón secundario login ─────────────────────────────────────────────── */
.soc-login-btn-outline {
    width: 100%;
    border: 1.5px solid #007a5a;
    border-radius: 8px;
    background: transparent;
    color: #007a5a;
    font-size: 15px;
    font-weight: 600;
    min-height: 42px;
    transition: background-color 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    margin-top: 4px;
}

.soc-login-btn-outline:hover {
    background: #f0faf6;
    color: #005f45;
}

/* ── Subtítulo login ─────────────────────────────────────────────────────── */
.soc-login-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0 0 16px;
}

/* ── Selector de canal (tarjetas Email / SMS) ────────────────────────────── */
.soc-code-channel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 4px;
}

.soc-code-channel-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 12px;
    border: 1.5px solid #d1d5db;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
    font-family: inherit;
}

.soc-code-channel-card:hover {
    border-color: #007a5a;
    background: #f0faf6;
}

.soc-code-channel-card--active {
    border-color: #007a5a;
    background: #eef8f3;
    box-shadow: 0 0 0 2px rgba(0, 122, 90, 0.18);
}

.soc-code-channel-icon {
    font-size: 26px;
    line-height: 1;
}

.soc-code-channel-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    text-align: center;
}

.soc-code-channel-card--active .soc-code-channel-label {
    color: #007a5a;
}

/* ── Input de código OTP ─────────────────────────────────────────────────── */
.soc-code-input-wrap {
    text-align: center;
}

.soc-code-input {
    text-align: center !important;
    font-size: 28px !important;
    letter-spacing: 10px !important;
    font-weight: 700 !important;
    color: #007a5a !important;
}

/* ── Not Found page ─────────────────────────────────────────────────────── */
.soc-not-found {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    padding: 40px 16px;
    background: #f4faf7;
}

.soc-not-found-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 520px;
    width: 100%;
}

.soc-not-found-illustration {
    width: 240px;
    height: auto;
    margin-bottom: 24px;
    filter: drop-shadow(0 8px 24px rgba(0, 109, 78, 0.12));
}

.soc-not-found-illustration svg {
    width: 100%;
    height: auto;
}

.soc-not-found-badge {
    display: inline-block;
    background: linear-gradient(135deg, #006d4e 0%, #149570 100%);
    color: #fff;
    font-size: 52px;
    font-weight: 700;
    font-family: Nunito, sans-serif;
    line-height: 1;
    padding: 10px 28px;
    border-radius: 16px;
    letter-spacing: 4px;
    margin-bottom: 20px;
    box-shadow: 0 4px 18px rgba(0, 109, 78, 0.25);
}

.soc-not-found-title {
    font-size: 26px;
    font-weight: 700;
    color: #006d4e;
    margin: 0 0 12px;
    font-family: Nunito, sans-serif;
}

.soc-not-found-description {
    font-size: 15px;
    color: #5a7a70;
    line-height: 1.65;
    margin: 0 0 32px;
    font-family: Nunito, sans-serif;
}

.soc-not-found-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
}

.soc-not-found-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 26px;
    border-radius: 9px;
    background: #006d4e;
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    font-family: Nunito, sans-serif;
    text-decoration: none !important;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 3px 12px rgba(0, 109, 78, 0.28);
}

.soc-not-found-btn-primary:hover {
    background: #00583e;
    box-shadow: 0 5px 16px rgba(0, 109, 78, 0.38);
}

.soc-not-found-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 26px;
    border-radius: 9px;
    background: #fff;
    color: #006d4e;
    font-size: 15px;
    font-weight: 700;
    font-family: Nunito, sans-serif;
    border: 2px solid #006d4e;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.soc-not-found-btn-secondary:hover {
    background: #e8f5f0;
}

.soc-not-found-footer {
    border-top: 1px solid #d6ede5;
    padding-top: 24px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.soc-not-found-logo {
    height: 32px;
    width: auto;
    opacity: 0.7;
}