:root {
    --blue-50:  #e8f4fd;
    --blue-100: #d0e8f9;
    --blue-150: #b8dbf5;
    --blue-200: #9ecbf0;
    --blue-600: #1565c0;
    --blue-700: #0d47a1;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    color: #1e3a5f;
    background: linear-gradient(160deg, var(--blue-50) 0%, var(--blue-100) 50%, var(--blue-150) 100%);
    min-height: 100vh;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 32px 48px 24px 32px;
}

.page-wrapper--centered {
    justify-content: flex-start;
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.top-bar img { max-width: 160px; }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(21, 101, 192, 0.18);
    border-radius: 10px;
    color: var(--blue-600);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s, box-shadow 0.2s;
}

.back-link:hover {
    background: #f0f8ff;
    box-shadow: 0 4px 14px rgba(21, 101, 192, 0.15);
    color: var(--blue-600);
    text-decoration: none;
}

.content-card {
    flex: 1;
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    background: linear-gradient(180deg, var(--blue-50) 0%, rgba(255,255,255,0.85) 100%);
    border: 1px solid rgba(21, 101, 192, 0.18);
    border-radius: 24px;
    box-shadow: 0 12px 48px rgba(21, 101, 192, 0.15);
    overflow: hidden;
    position: relative;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #1976d2, #42a5f5, #1976d2);
}

.content-card--wide { max-width: 1100px; }

.card-header {
    padding: 40px 48px 24px;
    border-bottom: 1px solid rgba(21, 101, 192, 0.1);
}

.card-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--blue-700);
    margin-bottom: 8px;
}

.card-header .subtitle,
.card-header .effective-date {
    font-size: 13px;
    color: #5a7fa8;
}

.card-body { padding: 32px 48px 48px; }

.intro-text {
    font-size: 15px;
    line-height: 1.8;
    color: #2c5282;
    margin-bottom: 32px;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    border-left: 4px solid #1976d2;
}

.policy-section { margin-bottom: 32px; }

.policy-section h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--blue-700);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--blue-200);
}

.policy-section h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1976d2;
    margin: 18px 0 10px;
}

.policy-section p {
    font-size: 14px;
    line-height: 1.8;
    color: #2c5282;
    margin-bottom: 12px;
}

.policy-section ul {
    margin: 12px 0 12px 20px;
    padding: 0;
}

.policy-section ul li {
    font-size: 14px;
    line-height: 1.75;
    color: #2c5282;
    margin-bottom: 8px;
}

.policy-section a {
    color: #1976d2;
    font-weight: 500;
    text-decoration: none;
}

.policy-section a:hover { text-decoration: underline; }

/* Auth / form panels */
.auth-panel {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0 0 24px;
}

.auth-card {
    width: 100%;
    max-width: 520px;
    background: linear-gradient(180deg, var(--blue-50) 0%, var(--blue-100) 100%);
    border: 1px solid rgba(21, 101, 192, 0.18);
    border-radius: 24px;
    box-shadow: 0 12px 48px rgba(21, 101, 192, 0.2);
    padding: 36px 32px;
    position: relative;
    overflow: hidden;
}

.auth-card--wide { max-width: 900px; }

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #1976d2, #42a5f5, #1976d2);
}

.auth-brand {
    text-align: center;
    margin-bottom: 24px;
}

.auth-brand img {
    max-width: 180px;
    margin-bottom: 8px;
}

.auth-heading {
    font-size: 22px;
    font-weight: 600;
    color: var(--blue-700);
    text-align: center;
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 13px;
    color: #5a7fa8;
    text-align: center;
    margin-bottom: 24px;
}

.form-inner {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(21, 101, 192, 0.12);
    border-radius: 16px;
    padding: 28px 24px 20px;
    box-shadow: 0 4px 20px rgba(21, 101, 192, 0.08);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #2c5282;
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    border: 1px solid var(--blue-200);
    border-radius: 8px;
    padding: 0 14px;
    font-size: 14px;
    font-family: inherit;
    color: #1e3a5f;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--blue-50);
}

textarea.form-control {
    padding: 12px 14px;
    min-height: 100px;
    resize: vertical;
}

select.form-control {
    appearance: auto;
}

.form-control:focus {
    outline: none;
    border-color: #1976d2;
    background: #f0f8ff;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.18);
}

.form-control::placeholder { color: #aaa; }

.form-control.error,
.error.form-control {
    background-color: #fff5f5 !important;
    border-color: #e57373 !important;
}

.btn-primary-theme {
    width: 100%;
    min-height: 46px;
    background: linear-gradient(135deg, #1976d2, #1565c0);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(21, 101, 192, 0.35);
    padding: 10px 20px;
}

.btn-primary-theme:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(21, 101, 192, 0.45);
    color: #fff;
}

.btn-secondary-theme {
    display: inline-block;
    padding: 10px 20px;
    background: var(--blue-50);
    color: #f15a24;
    border: 2px solid #f15a24;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-secondary-theme:hover {
    background: #f15a24;
    color: #fff;
    text-decoration: none;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.form-actions .btn-primary-theme { width: auto; min-width: 140px; }

.form-link {
    font-size: 13px;
    color: #1976d2;
    font-weight: 500;
    text-decoration: none;
}

.form-link:hover { text-decoration: underline; color: #1565c0; }

.form-note {
    font-size: 13px;
    color: #5a7fa8;
    margin-top: 16px;
    text-align: center;
}

.form-note a { color: #1976d2; font-weight: 500; }

/* Contact page */
.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

.contact-info { flex: 1 1 300px; }
.contact-map { flex: 1 1 300px; }

.contact-info h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--blue-700);
    margin-bottom: 16px;
}

.contact-info p {
    font-size: 14px;
    line-height: 1.8;
    color: #2c5282;
    margin-bottom: 10px;
}

.contact-social {
    margin-top: 20px;
}

.contact-social span {
    display: block;
    font-size: 13px;
    color: #5a7fa8;
    margin-bottom: 10px;
}

.contact-social a {
    display: inline-block;
    margin-right: 14px;
    font-size: 24px;
    color: var(--blue-600);
    transition: color 0.2s;
}

.contact-social a:hover { color: #1976d2; }

.contact-map iframe {
    width: 100%;
    height: 280px;
    border: none;
    border-radius: 12px;
    border: 1px solid var(--blue-200);
}

.site-footer {
    max-width: 960px;
    width: 100%;
    margin: 24px auto 0;
    background: linear-gradient(180deg, var(--blue-100) 0%, var(--blue-150) 100%);
    border: 1px solid rgba(21, 101, 192, 0.15);
    border-radius: 20px;
    padding: 20px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: #5a7fa8;
    box-shadow: 0 4px 24px rgba(21, 101, 192, 0.1);
}

.site-footer--wide { max-width: 1100px; }

.site-footer a {
    color: #3d6a9e;
    text-decoration: none;
    margin-left: 16px;
}

.site-footer a:first-of-type { margin-left: 0; }
.site-footer a:hover { color: #1976d2; }

@media (max-width: 768px) {
    .page-wrapper { padding: 20px 24px; }
    .card-header, .card-body { padding: 24px 22px; }
    .card-header h1 { font-size: 22px; }
    .auth-card { padding: 28px 22px; }
    .site-footer { padding: 16px 20px; flex-direction: column; text-align: center; }
    .contact-map iframe { height: 220px; }
}
