* {
box-sizing: border-box;
}

html,
body.login {
margin: 0;
padding: 0;
font-family: Inter, 'Segoe UI', Arial, sans-serif;
background: #eef1f7;
color: #1c2740;
}

body.login {
min-height: 100vh;
display: block;
}

body.login #login h1,
body.login #login h1 a,
body.login .privacy-policy-page-link,
body.login .language-switcher,
body.login #backtoblog,
body.login #nav {
display: none !important;
}

body.login #login {
width: 100%;
margin: 0;
padding: 0;
}

.portal-page {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding: 36px;
background: #eef1f7;
}

.portal-shell {
width: 100%;
max-width: 1220px;
min-height: 760px;
display: grid;
grid-template-columns: 1fr 1fr;
background: #ffffff;
border-radius: 28px;
overflow: hidden;
box-shadow: 0 18px 60px rgba(25, 45, 95, 0.08);
}

.portal-left {
position: relative;
overflow: hidden;
background: linear-gradient(180deg, #3464ff 0%, #234df0 100%);
padding: 48px 48px 40px;
display: flex;
flex-direction: column;
justify-content: space-between;
isolation: isolate;
}

.portal-left::before {
content: '';
position: absolute;
inset: 0;
background:
radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 28%),
radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.08), transparent 30%);
z-index: 0;
pointer-events: none;
}

.portal-left::after {
content: '';
position: absolute;
inset: 0;
opacity: 0.12;
background-image: radial-gradient(rgba(255, 255, 255, 0.65) 0.8px, transparent 0.8px);
background-size: 18px 18px;
mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.55), transparent);
-webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.55), transparent);
z-index: 0;
pointer-events: none;
}

.portal-seal-watermark {
position: absolute;
top: 95px;
left: 50%;
transform: translateX(-50%);
width: 300px;
height: 300px;
opacity: 0.06;
	background: url('https://elsalvador.lgu-app.com/wp-content/uploads/2026/04/logo-seal.png') center / contain no-repeat;
filter: grayscale(1) brightness(2);
z-index: 0;
pointer-events: none;
}

.portal-skyline {
position: absolute;
left: 0;
right: 0;
bottom: 88px;
height: 120px;
opacity: 0.12;
background-repeat: no-repeat;
background-size: cover;
background-position: center bottom;
z-index: 0;
pointer-events: none;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1400 180' preserveAspectRatio='none'%3E%3Cpath d='M0 150 L0 132 L72 132 L72 105 L124 105 L124 128 L182 128 L182 112 L255 112 L255 75 L330 75 L330 123 L390 123 L390 95 L474 95 L474 139 L542 139 L542 88 L625 88 L625 114 L706 114 L706 60 L795 60 L795 128 L868 128 L868 98 L944 98 L944 136 L1027 136 L1027 84 L1112 84 L1112 118 L1186 118 L1186 98 L1261 98 L1261 138 L1400 138 L1400 150 Z' fill='white'/%3E%3C/svg%3E");
}

.portal-bottom-line {
position: absolute;
left: 0;
right: 0;
bottom: 52px;
height: 2px;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
z-index: 0;
pointer-events: none;
}

.portal-left-top,
.portal-left-bottom {
position: relative;
z-index: 2;
}

.portal-badge {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 10px 18px;
border-radius: 999px;
color: #ffffff;
font-size: 14px;
font-weight: 500;
background: rgba(255, 255, 255, 0.14);
border: 1px solid rgba(255, 255, 255, 0.22);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
}

.portal-eyebrow {
margin: 28px 0 0;
color: rgba(255, 255, 255, 0.92);
font-size: 16px;
line-height: 1.45;
font-weight: 600;
}

.portal-hero {
margin-top: 132px;
max-width: 470px;
}

.portal-hero h1 {
margin: 0 0 14px;
color: #ffffff;
font-size: 34px;
line-height: 1.15;
font-weight: 800;
letter-spacing: -0.02em;
}

.portal-hero p {
margin: 0;
color: rgba(255, 255, 255, 0.92);
font-size: 17px;
line-height: 1.5;
max-width: 430px;
}

.portal-card-stack {
display: flex;
flex-direction: column;
gap: 16px;
margin-top: 40px;
}

.portal-info-card {
position: relative;
display: flex;
align-items: flex-start;
gap: 16px;
padding: 20px 22px;
border-radius: 18px;
background: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.18);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 8px 24px rgba(13, 35, 112, 0.12);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
}

.portal-info-card::before {
content: '';
position: absolute;
inset: 0;
border-radius: inherit;
background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
pointer-events: none;
}

.portal-card-icon {
position: relative;
z-index: 1;
width: 40px;
height: 40px;
flex: 0 0 40px;
display: grid;
place-items: center;
border-radius: 12px;
background: rgba(255, 255, 255, 0.12);
color: #ffffff;
font-size: 20px;
}

.portal-card-text {
position: relative;
z-index: 1;
}

.portal-card-title {
margin: 0 0 6px;
color: #ffffff;
font-size: 19px;
line-height: 1.2;
font-weight: 800;
}

.portal-card-desc {
margin: 0;
color: rgba(255, 255, 255, 0.92);
font-size: 15px;
line-height: 1.45;
}

.portal-right {
background: #ffffff;
display: flex;
align-items: center;
justify-content: center;
padding: 48px 56px;
}

.portal-form-wrap {
width: 100%;
max-width: 500px;
}

.portal-logo {
text-align: center;
margin-bottom: 22px;
}

.portal-logo img {
max-width: 100%;
height: auto;
max-height: 110px;
object-fit: contain;
}

.portal-title {
margin: 0;
text-align: center;
font-size: 34px;
line-height: 1.1;
font-weight: 900;
letter-spacing: 0.01em;
color: #0e1d45;
}

.portal-subtitle {
margin: 12px 0 28px;
text-align: center;
color: #606b85;
font-size: 16px;
line-height: 1.4;
}

.portal-notices {
margin-bottom: 18px;
}

.portal-notices #login_error,
.portal-notices .message,
.portal-notices .success {
margin: 0 0 12px;
padding: 12px 14px;
border-radius: 14px;
border: 1px solid #ef9a9a;
background: #fff5f5;
color: #8f1d1d;
box-shadow: none;
}

.portal-notices .message,
.portal-notices .success {
border-color: #b7d6b8;
background: #f2fbf3;
color: #1f5f27;
}

.portal-form {
margin: 0;
border: 0;
box-shadow: none;
padding: 0;
}

.portal-form-group {
margin-bottom: 18px;
}

.portal-label {
display: inline-block;
margin-bottom: 8px;
color: #22304f;
font-size: 15px;
font-weight: 700;
}

.portal-input-wrap {
position: relative;
}

.portal-input {
width: 100%;
height: 56px;
border: 1px solid #d9dfeb;
border-radius: 16px;
background: #fbfcff;
padding: 0 16px;
font-size: 16px;
color: #1f2b45;
outline: none;
transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.portal-input::placeholder {
color: #8a94ab;
}

.portal-input:focus {
border-color: #3a66ff;
background: #ffffff;
box-shadow: 0 0 0 4px rgba(58, 102, 255, 0.1);
}

.portal-password-toggle {
position: absolute;
top: 50%;
right: 14px;
transform: translateY(-50%);
border: 0;
background: transparent;
color: #3970ef;
cursor: pointer;
font-size: 18px;
padding: 4px;
}

.portal-password-toggle:focus-visible {
outline: 2px solid #2d5cff;
outline-offset: 2px;
border-radius: 8px;
}

.portal-form-row {
margin: 6px 0 26px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
}

.portal-checkbox {
display: inline-flex;
align-items: center;
gap: 10px;
color: #23304a;
font-size: 15px;
font-weight: 600;
}

.portal-checkbox input {
width: 18px;
height: 18px;
accent-color: #3565ff;
}

.portal-link {
color: #2d5cff;
text-decoration: none;
font-size: 15px;
font-weight: 600;
}

.portal-link:hover {
text-decoration: underline;
}

.portal-submit-wrap {
margin: 0;
}

.portal-submit {
width: 100%;
height: 56px;
border: 0;
border-radius: 16px;
background: linear-gradient(180deg, #3a6bff 0%, #2f5ef3 100%);
color: #ffffff;
font-size: 17px;
font-weight: 800;
letter-spacing: 0.02em;
cursor: pointer;
box-shadow: 0 10px 24px rgba(53, 101, 255, 0.22);
transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.portal-submit:hover {
transform: translateY(-1px);
box-shadow: 0 14px 28px rgba(53, 101, 255, 0.28);
filter: brightness(1.02);
}

.portal-submit:active {
transform: translateY(0);
}

.portal-submit:focus-visible {
outline: 3px solid rgba(58, 107, 255, 0.35);
outline-offset: 2px;
}

@media (max-width: 1100px) {
.portal-shell {
grid-template-columns: 1fr;
max-width: 760px;
}

.portal-left {
min-height: 520px;
}

.portal-right {
padding-top: 34px;
padding-bottom: 40px;
}

.portal-hero {
margin-top: 72px;
}

.portal-seal-watermark {
width: 250px;
height: 250px;
top: 55px;
}
}

@media (max-width: 767px) {
.portal-page {
padding: 16px;
}

.portal-shell {
border-radius: 22px;
}

.portal-left,
.portal-right {
padding: 28px 22px;
}

.portal-hero {
margin-top: 48px;
}

.portal-hero h1 {
font-size: 28px;
}

.portal-hero p {
font-size: 15px;
}

.portal-title {
font-size: 28px;
}

.portal-form-row {
flex-direction: column;
align-items: flex-start;
}

.portal-seal-watermark {
width: 210px;
height: 210px;
top: 60px;
opacity: 0.05;
}

.portal-skyline {
bottom: 72px;
height: 95px;
}
}
