/* Halaman login — standar portal pemerintah daerah */

.gov-login-page {
    min-height: 100vh;
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: #0f172a;
    overflow-x: hidden;
}

.gov-login-page.has-marquee {
    padding-bottom: 42px;
}

.gov-login-bg {
    position: fixed;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(3, 105, 161, 0.92) 0%, rgba(15, 23, 42, 0.95) 50%, rgba(15, 23, 42, 1) 100%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 0;
}

.gov-login-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.gov-login-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 960px;
    width: 100%;
    gap: 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.gov-login-brand {
    background: linear-gradient(160deg, var(--sipanda-primary, #0369a1) 0%, #0c4a6e 100%);
    color: #f8fafc;
    padding: 2rem 1.75rem;
    display: flex;
    align-items: center;
}

.gov-login-brand-inner {
    width: 100%;
}

.gov-logo-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.gov-logo-main {
    max-height: 72px;
    max-width: 120px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.gov-logo-secondary {
    max-height: 48px;
    opacity: 0.85;
}

.gov-region-label {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #bae6fd;
    margin-bottom: 0.25rem;
}

.gov-region-name {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.75rem;
}

.gov-divider {
    height: 3px;
    width: 48px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    border-radius: 2px;
    margin-bottom: 1rem;
}

.gov-app-name {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
}

.gov-app-tagline {
    font-size: 0.85rem;
    color: #e0f2fe;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.gov-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
    color: #cbd5e1;
}

.gov-features i {
    color: #7dd3fc;
}

.gov-login-form-panel {
    padding: 2rem 1.75rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gov-login-card-header {
    margin-bottom: 1.25rem;
}

.gov-badge-official {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0.2rem 0.55rem;
    background: #eff6ff;
    color: var(--sipanda-primary, #0369a1);
    border: 1px solid #bfdbfe;
    border-radius: 4px;
    margin-bottom: 0.65rem;
}

.gov-login-card-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
}

.gov-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.25rem;
}

.gov-input-group .input-group-text {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #64748b;
    padding: 0.35rem 0.6rem;
}

.gov-input-group .form-control {
    border-color: #e2e8f0;
    font-size: 0.875rem;
    padding: 0.4rem 0.65rem;
    min-height: auto;
}

.gov-input-group .form-control:focus {
    border-color: var(--sipanda-primary, #0369a1);
    box-shadow: 0 0 0 0.15rem rgba(3, 105, 161, 0.15);
}

.gov-password-toggle {
    cursor: pointer;
    border-left: 0;
    padding-left: 0.65rem;
    padding-right: 0.65rem;
    min-width: 2.75rem;
    flex: 0 0 auto;
    position: relative;
    z-index: 2;
    transition: color 0.15s, background 0.15s;
}

.gov-password-toggle:hover {
    background: #f1f5f9;
    color: var(--sipanda-primary, #0369a1);
}

.gov-password-toggle:focus {
    outline: none;
    box-shadow: none;
    color: var(--sipanda-primary, #0369a1);
}

.gov-password-toggle i {
    font-size: 1.1rem;
    line-height: 1;
    pointer-events: none;
}

.gov-btn-login {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
}

.gov-demo-hint summary {
    cursor: pointer;
    user-select: none;
}

.gov-demo-hint code {
    font-size: 0.75rem;
}

/* Marquee pengumuman */
.gov-marquee-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: stretch;
    height: 40px;
    background: linear-gradient(90deg, #7f1d1d 0%, #991b1b 50%, #7f1d1d 100%);
    color: #fff;
    border-top: 2px solid #fbbf24;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
}

.gov-marquee-label {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0 1rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    background: rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.gov-marquee-track-wrap {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.gov-marquee-track {
    display: flex;
    white-space: nowrap;
    animation: govMarquee 40s linear infinite;
}

.gov-marquee-item {
    padding-right: 4rem;
    font-size: 0.8rem;
    font-weight: 500;
}

@keyframes govMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 767.98px) {
    .gov-login-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    .gov-login-brand {
        padding: 1.5rem 1.25rem;
    }

    .gov-features {
        display: none;
    }

    .gov-login-form-panel {
        padding: 1.5rem 1.25rem;
    }

    .gov-logo-main {
        max-height: 56px;
    }
}
