/* LOGIN CSS — public login page (WFP-inspired layout) */

html.login-html,
html.login-html body.login-page {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(160deg, #e8f1f8 0%, #f4f7fb 45%, #eef2f6 100%);
    color: #1a2b3c;
}

.login-page .login-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px 40px;
    gap: 20px;
}

.login-card {
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 60, 120, 0.12);
    border: 1px solid rgba(0, 94, 184, 0.08);
    padding: 32px 28px 28px;
    position: relative;
}

.login-card__lang {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin-bottom: 20px;
}

.login-lang-btn {
    display: inline-block;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    border: 1px solid #c5d9ea;
    color: #005eb8;
    text-decoration: none;
    background: #fff;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.login-lang-btn:hover {
    text-decoration: none;
    color: #004a94;
    border-color: #005eb8;
    background: #f0f6fc;
}

.login-lang-btn.is-active {
    background: #005eb8;
    border-color: #005eb8;
    color: #fff;
}

.login-card__brand {
    text-align: center;
    margin-bottom: 8px;
}

.login-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #003d7a;
    margin: 0 0 6px;
    text-align: center;
}

.login-card__subtitle {
    font-size: 0.9rem;
    color: #5a6d7e;
    text-align: center;
    margin: 0 0 24px;
    line-height: 1.45;
}

.login-form-container {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    max-width: none;
    margin: 0;
}

.login-form-container:hover {
    box-shadow: none;
}

.login-header {
    display: none;
}

.login-page .form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #2c3e50;
    margin-bottom: 6px;
}

.login-page .form-group label .fa {
    color: #005eb8;
    margin-right: 6px;
    width: 16px;
    text-align: center;
}

.login-page .form-control {
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 15px;
    border: 1px solid #c8d6e3;
    background: #fafcfe;
}

.login-page .form-control:focus {
    border-color: #005eb8;
    box-shadow: 0 0 0 3px rgba(0, 94, 184, 0.15);
    background: #fff;
}

.login-page .btn-login-submit {
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    background: #005eb8;
    color: #fff;
    transition: background 0.2s, transform 0.15s;
    margin-top: 8px;
}

.login-page .btn-login-submit:hover {
    background: #004a94;
    transform: translateY(-1px);
    color: #fff;
}

.login-page .login-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}

.login-page .alert {
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.login-guides {
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0, 60, 120, 0.08);
    border: 1px solid rgba(0, 94, 184, 0.08);
    padding: 18px 20px;
}

.login-guides__title {
    font-size: 1rem;
    font-weight: 700;
    color: #003d7a;
    margin: 0 0 12px;
    text-align: center;
}

.login-guides__title .fa {
    color: #005eb8;
    margin-right: 6px;
}

.login-guides__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.login-guides__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #e8eef4;
    font-size: 0.88rem;
}

.login-guides__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.login-guides__name {
    flex: 1;
    word-break: break-word;
    color: #2c3e50;
}

.login-guides__new {
    display: inline-block;
    background: #e53935;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 6px;
    vertical-align: middle;
}

.login-guides__view {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    background: #005eb8;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
}

.login-guides__view:hover {
    background: #004a94;
    color: #fff;
    text-decoration: none;
}

.login-resource-tabs {
    display: none !important;
}

/* Legacy tab styles (hidden section) */
.content-row {
    padding: 10px 0;
    margin-bottom: 5px;
    border-bottom: 1px solid #dee2e6;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.label-bg {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
}

.nav-tabs .nav-link {
    font-size: 1.1em;
    font-weight: bold;
}

.link-style {
    color: #005eb8;
    font-weight: bold;
    text-decoration: none;
}

.mandatory {
    color: #dc3545;
    font-size: 14px;
    font-weight: bold;
}

.login-page .spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(0, 94, 184, 0.15);
    border-left-color: #005eb8;
    border-radius: 50%;
    animation: login-spin 1s linear infinite;
}

@keyframes login-spin {
    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .login-card {
        padding: 24px 18px 20px;
    }

    .login-card__title {
        font-size: 1.3rem;
    }
}
