html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.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."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.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-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a, #1e293b, #0f766e);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: white;
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.30);
}

.login-header {
    text-align: center;
    margin-bottom: 28px;
}

    .login-header h2 {
        font-weight: 800;
        color: #0f172a;
        margin-bottom: 8px;
    }

    .login-header p {
        color: #64748b;
        margin: 0;
    }

.login-card label {
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.login-card .form-control {
    border-radius: 10px;
    padding: 10px 12px;
}

.login-card .btn-primary {
    background: #0f766e;
    border-color: #0f766e;
    border-radius: 12px;
    padding: 12px;
    font-weight: 700;
}

    .login-card .btn-primary:hover {
        background: #115e59;
        border-color: #115e59;
    }

/* ===============================
   QUINIELA MUNDIALISTA 2026
   =============================== */

.q-auth-layout {
    min-height: 100vh;
    width: 100%;
}

.q-login-page {
    min-height: 100vh;
    width: 100vw;
    margin: 0;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top left, rgba(20, 184, 166, 0.35), transparent 35%), radial-gradient(circle at bottom right, rgba(147, 51, 234, 0.30), transparent 35%), linear-gradient(135deg, #020617 0%, #0f172a 45%, #064e3b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.q-auth-layout {
    min-height: 100vh;
    width: 100vw;
    margin: 0;
    padding: 0;
}
.q-login-bg::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    top: -180px;
    right: -130px;
}

.q-login-bg::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(20, 184, 166, 0.12);
    bottom: -160px;
    left: -100px;
}

.q-login-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
    border-radius: 28px;
    padding: 38px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255,255,255,0.5);
}

.q-login-brand {
    text-align: center;
    margin-bottom: 30px;
}

.q-logo-ball {
    width: 72px;
    height: 72px;
    margin: 0 auto 14px auto;
    border-radius: 22px;
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    box-shadow: 0 18px 40px rgba(15, 118, 110, 0.38);
}

.q-login-brand h1 {
    font-size: 28px;
    font-weight: 900;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.5px;
}

.q-login-brand h2 {
    font-size: 36px;
    font-weight: 900;
    color: #0f766e;
    margin: -4px 0 6px 0;
}

.q-login-brand p {
    color: #64748b;
    margin: 0;
    font-size: 15px;
}

.q-form-group {
    margin-bottom: 18px;
}

    .q-form-group label {
        display: block;
        font-weight: 800;
        color: #1e293b;
        margin-bottom: 8px;
    }

.q-input {
    width: 100%;
    height: 48px;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    padding: 0 15px;
    outline: none;
    font-size: 15px;
    color: #0f172a;
    background: #f8fafc;
    transition: 0.2s ease;
}

    .q-input:focus {
        background: #ffffff;
        border-color: #14b8a6;
        box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.16);
    }

.q-login-btn {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    color: white;
    font-weight: 900;
    letter-spacing: 0.3px;
    margin-top: 8px;
    transition: 0.2s ease;
    box-shadow: 0 16px 35px rgba(15, 118, 110, 0.32);
}

    .q-login-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 20px 45px rgba(15, 118, 110, 0.42);
    }

    .q-login-btn:disabled {
        opacity: 0.75;
        cursor: not-allowed;
    }

.q-login-footer {
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
    margin-top: 22px;
}

.q-alert {
    border-radius: 14px;
    font-size: 14px;
}

/* Dashboard */

.q-dashboard {
    padding: 28px;
    background: #f4f7fb;
    min-height: calc(100vh - 56px);
}

.q-hero {
    background: linear-gradient(135deg, #0f172a, #0f766e);
    color: white;
    border-radius: 28px;
    padding: 34px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    box-shadow: 0 24px 65px rgba(15, 23, 42, 0.24);
}

.q-chip {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 12px;
}

.q-hero h1 {
    font-size: 34px;
    font-weight: 900;
    margin: 0 0 8px 0;
    letter-spacing: -0.6px;
}

.q-hero p {
    margin: 0;
    color: rgba(255,255,255,0.82);
    max-width: 620px;
}

.q-user-card {
    min-width: 230px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 22px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.q-avatar {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: white;
    color: #0f766e;
    font-weight: 900;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.q-user-card strong {
    display: block;
    font-size: 17px;
}

.q-user-card span {
    display: block;
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    font-weight: 700;
}

.q-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.q-stat-card {
    background: white;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
}

    .q-stat-card span {
        color: #64748b;
        font-weight: 800;
        font-size: 14px;
    }

    .q-stat-card strong {
        display: block;
        color: #0f172a;
        font-size: 34px;
        margin-top: 6px;
    }

    .q-stat-card small {
        color: #94a3b8;
    }

.q-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.q-action-card {
    background: white;
    border-radius: 24px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
    transition: 0.2s ease;
}

    .q-action-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 20px 45px rgba(15, 23, 42, 0.13);
    }

.q-admin-card {
    border-color: rgba(20, 184, 166, 0.45);
}

.q-action-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: #ecfdf5;
    color: #0f766e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 16px;
}

.q-action-card h3 {
    font-size: 18px;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 8px;
}

.q-action-card p {
    color: #64748b;
    font-size: 14px;
    min-height: 64px;
}

.q-action-btn {
    border: none;
    background: #0f766e;
    color: white;
    border-radius: 12px;
    padding: 10px 16px;
    font-weight: 800;
}

    .q-action-btn:disabled {
        background: #cbd5e1;
    }

.q-logout-btn {
    margin-top: 24px;
    border: none;
    background: #ef4444;
    color: white;
    border-radius: 14px;
    padding: 11px 18px;
    font-weight: 800;
}

@media (max-width: 1100px) {
    .q-stats-grid,
    .q-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .q-hero {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .q-dashboard {
        padding: 16px;
    }

    .q-login-card {
        padding: 28px;
    }

    .q-stats-grid,
    .q-actions {
        grid-template-columns: 1fr;
    }

    .q-hero h1 {
        font-size: 26px;
    }
}

/* ===============================
   LAYOUT GENERAL APP
   =============================== */

.qm-app-shell {
    min-height: 100vh;
    background: #f4f7fb;
}

.qm-topbar {
    height: 78px;
    background: rgba(255,255,255,0.90);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 20;
}

.qm-topbar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.qm-brand-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 12px 28px rgba(15, 118, 110, 0.28);
}

.qm-brand-title {
    font-size: 20px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.1;
}

.qm-brand-subtitle {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    margin-top: 2px;
}

.qm-main-content {
    padding: 0;
}

/* Ajuste para que el dashboard quede más limpio */
.q-dashboard {
    padding: 24px 28px 32px 28px;
    background: #f4f7fb;
    min-height: calc(100vh - 78px);
    max-width: 1440px;
    margin: 0 auto;
}

/* Usuario arriba a la derecha */

.qm-topbar {
    justify-content: space-between;
}

.qm-topbar-user {
    display: flex;
    align-items: center;
    gap: 14px;
}

.qm-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 8px 12px;
}

.qm-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    color: white;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qm-user-name {
    font-weight: 900;
    color: #0f172a;
    line-height: 1.1;
}

.qm-user-role {
    font-size: 12px;
    color: #64748b;
    font-weight: 700;
}

.qm-logout-top {
    border: none;
    background: #ef4444;
    color: white;
    border-radius: 14px;
    padding: 10px 15px;
    font-weight: 800;
    transition: 0.2s ease;
}

    .qm-logout-top:hover {
        background: #dc2626;
        transform: translateY(-1px);
    }

/* Error login más visible */

.q-login-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: 14px;
    padding: 12px 14px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 18px;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

/* ===============================
   TOQUE MUNDIALISTA LOGIN
   =============================== */

.q-login-pattern {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(135deg, rgba(2, 6, 23, 0.72), rgba(6, 78, 59, 0.70)), url('/img/mundial/lo-mundial-2026-2.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.32;
    z-index: 0;
}

.q-login-page {
    isolation: isolate;
}

.q-login-bg,
.q-login-card {
    z-index: 2;
}

.q-wc-logo-wrap {
    width: 96px;
    height: 72px;
    margin: 0 auto 16px auto;
    border-radius: 22px;
    overflow: hidden;
    background: #020617;
    box-shadow: 0 18px 45px rgba(15, 118, 110, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
}

.q-wc-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.q-login-brand h1 {
    font-size: 28px;
    font-weight: 900;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.5px;
}

.q-login-brand h2 {
    font-size: 36px;
    font-weight: 950;
    color: #0f766e;
    margin: -2px 0 8px 0;
    letter-spacing: 2px;
}

/* ===============================
   HERO MUNDIALISTA INICIO
   =============================== */

.q-hero-worldcup {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.95), rgba(15, 118, 110, 0.88));
}

    .q-hero-worldcup::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: url('/img/mundial/lo-mundial-2026-2.jpg');
        background-size: cover;
        background-position: center;
        opacity: 0.18;
        mix-blend-mode: screen;
    }

    .q-hero-worldcup::after {
        content: "";
        position: absolute;
        width: 360px;
        height: 360px;
        right: -90px;
        top: -120px;
        border-radius: 50%;
        background: rgba(255,255,255,0.10);
    }

.q-hero-content,
.q-hero-right {
    position: relative;
    z-index: 2;
}

.q-hero-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.q-hero-logo {
    width: 116px;
    height: 86px;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255,255,255,0.95);
    padding: 8px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.22);
}

    .q-hero-logo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 18px;
    }

.q-chip {
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.28);
    color: white;
}

@media (max-width: 900px) {
    .q-hero-right {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }

    .q-hero-logo {
        display: none;
    }
}
/* ===============================
   CARD REGLAS EN HERO
   =============================== */

.q-rules-card {
    min-width: 330px;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.24);
    border-radius: 24px;
    padding: 18px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 45px rgba(0,0,0,0.16);
}

.q-rules-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: rgba(255,255,255,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.q-rules-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .q-rules-content strong {
        color: white;
        font-size: 17px;
        font-weight: 900;
        line-height: 1.1;
    }

    .q-rules-content span {
        color: rgba(255,255,255,0.82);
        font-size: 13px;
        font-weight: 600;
    }

.q-rules-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.q-rules-btn {
    text-decoration: none;
    border-radius: 12px;
    padding: 9px 13px;
    font-size: 13px;
    font-weight: 900;
    transition: 0.2s ease;
}

.q-rules-view {
    background: white;
    color: #0f766e;
}

.q-rules-download {
    background: #14b8a6;
    color: white;
}

.q-rules-btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.q-rules-view:hover {
    color: #0f766e;
    background: #f8fafc;
}

.q-rules-download:hover {
    color: white;
    background: #0f766e;
}

@media (max-width: 900px) {
    .q-rules-card {
        width: 100%;
        min-width: unset;
    }

    .q-rules-actions {
        flex-wrap: wrap;
    }
}