/* Department portal login card (used inside main site layout) */

.login-portal-in-main {
    display: flex;
    justify-content: center;
    padding: 0.5rem 0 2rem;
}

.login-portal-wrap {
    width: 100%;
    max-width: 440px;
}

.login-portal-page-heading {
    text-align: center;
    font-size: 1.125rem;
    font-weight: 700;
    color: #007bb0;
    margin: 0 0 1rem;
    letter-spacing: 0.02em;
}

.login-portal-card {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #d0e3ef;
    box-shadow: 0 8px 30px rgba(0, 75, 120, 0.12);
    overflow: hidden;
}

.login-portal-card-header {
    background: #007bb0;
    padding: 1rem 1.25rem;
    text-align: center;
}

.login-portal-card-header h2 {
    margin: 0;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}

.login-portal-card-header p {
    margin: 0.25rem 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
}

.login-portal-tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
}

.login-portal-tab {
    flex: 1;
    padding: 0.75rem 0.5rem;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    color: #6b7280;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.login-portal-tab:hover {
    color: #0099da;
}

.login-portal-tab.is-active {
    border-bottom-color: #0099da;
    color: #0099da;
    background: #fff;
}

.login-portal-body {
    padding: 1.25rem;
}

@media (min-width: 640px) {
    .login-portal-body {
        padding: 1.5rem;
    }
}

.login-portal-intro {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
    margin: 0 0 1rem;
}

.login-portal-intro a {
    color: #0099da;
    font-weight: 600;
}

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

.login-portal-error {
    margin-bottom: 1rem;
    padding: 0.625rem 0.75rem;
    border-radius: 6px;
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
    font-size: 13px;
}

.login-portal-fields {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.login-portal-hint {
    font-size: 11px;
    color: #9ca3af;
    text-align: center;
    margin: 1rem 0 0;
}

.login-portal-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    background: #f3f4f6;
    padding: 0 0.25rem;
    border-radius: 3px;
}

.login-portal-captcha-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.login-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 6px;
}

.login-input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
    color: #1f2937;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.login-input:focus {
    outline: none;
    border-color: #0099da;
    box-shadow: 0 0 0 3px rgba(0, 153, 218, 0.15);
}

select.login-input {
    appearance: auto;
}

.login-btn {
    display: block;
    width: 100%;
    height: 42px;
    margin-top: 0.25rem;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(180deg, #0099da 0%, #007bb0 100%);
    border: 1px solid #006da3;
    border-radius: 6px;
    cursor: pointer;
    transition: filter 0.15s, transform 0.1s;
}

.login-btn:hover {
    filter: brightness(1.05);
}

.login-btn:active {
    transform: translateY(1px);
}

.login-captcha {
    width: 110px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    border: 1px solid #94a3b8;
    border-radius: 6px;
    font: italic 22px/1 Georgia, serif;
    letter-spacing: 0.12em;
    color: #1e293b;
    user-select: none;
    flex-shrink: 0;
}
