html {
    font-size: 13px;
}

@media (min-width: 768px) {
    html {
        font-size: 15px;
    }
}

:root {
    --sello-surface: #ffffff;
    --sello-soft: #f4f7ff;
    --sello-primary: #2152ff;
    --sello-primary-dark: #1234a6;
    --sello-text: #1f2937;
    --sello-muted: #6b7280;
    --sello-border: rgba(15, 23, 42, 0.08);
    --sello-shadow: 0 30px 60px rgba(70, 90, 255, 0.15);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--sello-text);
    background: linear-gradient(180deg, #eef2ff 0%, #f9fafc 100%);
    min-height: 100vh;
    margin: 0;
}

.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-content {
    flex: 1 1 auto;
    padding: clamp(1rem, 3vw, 2.5rem) clamp(0.75rem, 3vw, 2rem);
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus,
.form-select:focus {
    box-shadow: 0 0 0 0.1rem rgba(255, 255, 255, 0.8), 0 0 0 0.25rem rgba(33, 82, 255, 0.45);
}
.form-select.form-select-lg {
    padding: 0.55rem 0.75rem;
    font-size: 0.95rem;
    border-radius: 0.65rem;
}

.sello-home {
    position: relative;
    border-radius: clamp(1rem, 2.5vw, 2.25rem);
    padding: clamp(1.5rem, 5vw, 4rem) clamp(0.75rem, 3.5vw, 2.25rem);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(12px);
    box-shadow: var(--sello-shadow);
}

.sello-home__background {
    position: absolute;
    inset: -20% -15%;
    background:
        radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.35), rgba(59, 130, 246, 0) 55%),
        radial-gradient(circle at 80% 0%, rgba(99, 102, 241, 0.35), rgba(99, 102, 241, 0) 50%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(226, 232, 255, 0.5));
    z-index: 0;
    opacity: 0.9;
    pointer-events: none;
}

.sello-home > .container {
    position: relative;
    z-index: 1;
}

.sello-home__intro {
    max-width: 400px;
}

.sello-home__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    margin-bottom: 1.5rem;
}

.sello-home__title {
    font-size: clamp(1.75rem, 3.5vw, 2.4rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 0.9rem;
}

.sello-home__lead {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--sello-muted);
    margin-bottom: 0;
}

.sello-home__steps li {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 0.9rem 1.1rem;
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    margin-bottom: 1rem;
}

.sello-home__steps h3 {
    margin: 0 0 0.2rem 0;
    font-size: 1.05rem;
    font-weight: 600;
}

.sello-home__steps p {
    margin: 0;
    color: rgba(15, 23, 42, 0.65);
    font-size: 0.95rem;
}

.sello-home__steps .icon {
    width: 2rem;
    height: 2.5rem;
    min-width: 1.8rem;
    min-height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(33, 82, 255, 0.9), rgba(79, 70, 229, 0.9));
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 20%;
    box-shadow: 0 10px 20px rgba(33, 82, 255, 0.35);
}

.sello-home__tip {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.95rem;
    background: rgba(33, 82, 255, 0.08);
    border: 1px solid rgba(33, 82, 255, 0.15);
    border-radius: 0.9rem;
    font-size: 0.85rem;
    color: rgba(15, 23, 42, 0.8);
}

.sello-home-card {
    border-radius: 1.45rem;
    background: var(--sello-surface);
    box-shadow: 0 25px 45px rgba(15, 23, 42, 0.08);
}

.sello-home-card .card-body {
    padding: clamp(1.5rem, 4vw, 3rem);
}

.sello-home-card__section + .sello-home-card__section {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    padding-top: 1.25rem;
    margin-top: 1.25rem;
}

.sello-home-card__status-badge {
    background: rgba(33, 82, 255, 0.1);
    color: rgba(33, 82, 255, 0.85);
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sello-home-card__selection {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 1.1rem;
    background: rgba(220, 252, 231, 0.55);
    border: 1px solid rgba(34, 197, 94, 0.35);
    border-radius: 1rem;
}

.sello-home-card__badge {
    background: rgba(34, 197, 94, 0.18);
    color: rgba(21, 128, 61, 0.95);
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sello-home-card__hint {
    font-size: 0.8rem;
}

.sello-home-card__check-icon {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 2px solid rgba(21, 128, 61, 0.4);
    color: rgba(21, 128, 61, 0.95);
    font-size: 1rem;
}

.signed-card {
    position: relative;
    border-radius: 0.75rem;
    background: #ffffff;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 1.25rem;
}

.signed-card__dismiss {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    width: 32px;
    height: 32px;
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    background: transparent;
    color: #111827;
    font-size: 1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.signed-card__dismiss:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
}

.signed-card__header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.signed-card__image {
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    background: #e2feee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #059669;
    animation: signed-card-pulse 0.7s ease-in-out alternate infinite;
}

.signed-card__content {
    flex: 1;
}

.signed-card__title {
    display: block;
    font-weight: 600;
    color: #065f46;
    font-size: 1rem;
}

.signed-card__message {
    margin: 0.25rem 0 0;
    color: #4b5563;
    font-size: 0.9rem;
}

.signed-card__actions {
    margin-top: 1rem;
}

.signed-card__primary {
    width: 100%;
    border: none;
    border-radius: 0.5rem;
    padding: 0.65rem 1rem;
    background: #15803d;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.signed-card__primary:hover {
    background: #166534;
}

.signed-card__actions--center {
    margin-top: 1.35rem;
    display: flex;
    justify-content: center;
}

.signed-card__actions--center .signed-card__primary {
    width: auto;
    min-width: 11rem;
}

.signed-card--info {
    background: #f0f7ff;
}

.signed-card--info .signed-card__image {
    background: rgba(59, 130, 246, 0.2);
    color: #1d4ed8;
}

.signed-card--info .signed-card__title {
    color: #1e3a8a;
}

.signed-card--info .signed-card__message {
    color: #1f4b99;
}

.signed-card__primary--outline {
    background: transparent;
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #1d4ed8;
}

.signed-card__primary--outline:hover {
    background: rgba(59, 130, 246, 0.12);
}

.signed-card.fade {
    opacity: 0;
    transition: opacity 0.2s ease;
}

@keyframes signed-card-pulse {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.08);
    }
}

.sello-home-card .input-group-text {
    background: rgba(33, 82, 255, 0.08);
    border: 1px solid rgba(33, 82, 255, 0.15);
    color: rgba(33, 82, 255, 0.8);
}

.sello-home-card input[type="file"]:disabled,
.sello-home-card select:disabled {
    background-color: rgba(148, 163, 184, 0.1);
    border-color: rgba(148, 163, 184, 0.2);
    color: rgba(100, 116, 139, 0.6);
    cursor: not-allowed;
}

.sello-home-card button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

@media (max-width: 991.98px) {
    .app-content {
        padding: 1.75rem 1rem 2.5rem;
    }

    .sello-home {
        border-radius: 1.5rem;
        padding: 2rem 1.25rem;
    }

    .sello-home__intro {
        max-width: 100%;
    }

    .sello-home-card {
        border-radius: 1.35rem;
    }
}

@media (max-width: 575.98px) {
    .sello-home__steps li {
        align-items: center;
    }

    .sello-home__steps .icon {
        width: 2.1rem;
        height: 2.1rem;
        min-width: 2.1rem;
        min-height: 2.1rem;
        border-radius: 50%;
        font-size: 0.95rem;
    }

    .sello-home-card .input-group-text {
        display: none;
    }
}

.swal2-popup.big-success {
    font-size: 1.15rem;
}

.swal2-title.big-title {
    font-size: 1.6rem;
}

.swal2-html-container.big-text {
    font-size: 1.1rem;
}

/* Legacy helpers kept for compatibility */
.upload-container {
    background: var(--sello-surface);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 300px;
}

.file-name {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

main {
    display: block;
}

/* Login landing */
.login-landing {
    position: relative;
    border-radius: clamp(1.5rem, 3vw, 3rem);
    padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px);
    box-shadow: var(--sello-shadow);
}

.login-landing__background {
    position: absolute;
    inset: -25% -20% -15% -20%;
    background:
        radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.35), rgba(37, 99, 235, 0) 52%),
        radial-gradient(circle at 85% 10%, rgba(129, 140, 248, 0.35), rgba(129, 140, 248, 0) 55%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(226, 232, 255, 0.58));
    opacity: 0.95;
    pointer-events: none;
    z-index: 0;
}

.login-landing > .container {
    position: relative;
    z-index: 1;
}

.login-landing__intro {
    max-width: 460px;
}

.login-landing__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.95rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(15, 23, 42, 0.85);
    background: rgba(255, 255, 255, 0.75);
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    margin-bottom: 1.5rem;
}

.login-landing__badge i {
    color: rgba(33, 82, 255, 0.85);
}

.login-landing__title {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.1rem;
}

.login-landing__lead {
    font-size: 0.95rem;
    line-height: 1.65;
    color: rgba(15, 23, 42, 0.68);
    margin-bottom: 0;
}

.login-landing__highlights li {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1.1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.08);
    color: rgba(15, 23, 42, 0.78);
    font-size: 0.97rem;
    margin-bottom: 0.85rem;
}

.login-landing__highlights li i {
    color: rgba(33, 82, 255, 0.9);
    font-size: 1.2rem;
}

.login-landing__footer {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.1rem;
    background: rgba(33, 82, 255, 0.1);
    border: 1px solid rgba(33, 82, 255, 0.18);
    border-radius: 0.95rem;
    font-size: 0.95rem;
}

.login-landing__footer a {
    color: var(--sello-primary);
    font-weight: 600;
}

.login-card {
    border-radius: 1.5rem;
    background: var(--sello-surface);
}

.login-card .card-body {
    padding: clamp(1.5rem, 4vw, 2.75rem);
}

.login-card__badge {
    background: rgba(59, 130, 246, 0.16);
    color: rgba(37, 99, 235, 0.9);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 600;
}

.login-card__input .input-group-text {
    background: rgba(33, 82, 255, 0.08);
    border: 1px solid rgba(33, 82, 255, 0.15);
    color: rgba(33, 82, 255, 0.85);
}

.login-card__help a {
    color: var(--sello-primary);
    font-weight: 600;
}

.login-card__help a:hover {
    text-decoration: underline;
}

@media (max-width: 991.98px) {
    .login-landing {
        padding: 2.2rem 1.5rem;
        border-radius: 1.75rem;
    }

    .login-card {
        border-radius: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .login-landing__highlights li {
        flex-direction: row;
        align-items: flex-start;
    }

    .login-card__badge {
        font-size: 0.7rem;
    }
}

.login-landing__divider {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2.5rem 1.4rem;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 2rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    isolation: isolate;
}

.login-landing__divider::before {
    content: "";
    position: absolute;
    inset: 1.5rem calc(50% - 2px) 1.5rem;
    background: linear-gradient(180deg, rgba(33,82,255,0.18) 0%, rgba(59,130,246,0.05) 100%);
    border-radius: 999px;
    opacity: 0.85;
    z-index: -1;
}

.login-landing__divider-item {
    text-align: center;
    max-width: 140px;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.login-landing__divider-item .label {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.55);
}

.login-landing__divider-item .value {
    font-weight: 600;
    color: rgba(15, 23, 42, 0.85);
    font-size: 0.95rem;
}

.login-landing__pulse {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.9);
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.45);
    animation: login-pulse 2.4s infinite;
}

@keyframes login-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.45);
    }
    70% {
        box-shadow: 0 0 0 16px rgba(59, 130, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}


