:root {
    --seal-blue: #002868;
    --gov-red: #bf0a30;
    --text-grey: #333;
    --bg-grey: #f0f0f4;
}

body {
    background-color: var(--bg-grey);
    color: var(--text-grey);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.gov-banner {
    width: 100%;
    background-color: var(--seal-blue);
    color: white;
    padding: 0.5rem 0;
    font-size: 0.8rem;
    text-align: center;
    font-weight: bold;
}

.flag-line {
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg,
            var(--seal-blue) 0%, var(--seal-blue) 33%,
            white 33%, white 66%,
            var(--gov-red) 66%, var(--gov-red) 100%);
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.panel-container {
    background: white;
    padding: 3rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-top: 5px solid var(--seal-blue);
    width: 100%;
    max-width: 600px;
    text-align: center;
    position: relative;
}

.agency-seal {
    width: 80px;
    height: 80px;
    background: var(--seal-blue);
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 2.5rem;
    border: 3px double white;
    box-shadow: 0 0 0 3px var(--seal-blue);
}

h1 {
    font-size: 1.5rem;
    color: var(--seal-blue);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

h2 {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 2rem;
    font-weight: normal;
}

.warning-box {
    background: #fff8f8;
    border: 1px solid #e0c0c0;
    color: #8a0000;
    font-size: 0.8rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: left;
    line-height: 1.4;
}

button {
    background-color: var(--seal-blue);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}

button:hover {
    background-color: #001f4d;
}

button.secondary {
    background-color: #eee;
    color: #333;
    margin-left: 1rem;
}

/* Loading Overlay for Agency Theme */
.agency-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #ccc;
    border-top-color: var(--seal-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loader-text {
    color: var(--seal-blue);
    font-weight: bold;
    letter-spacing: 1px;
}

input {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}