
:root {
    --pink: #e63e80;
    --pink-dark: #c92d6c;
    --pink-light: #fce5ef;
    --pink-border: #f5d7e3;
    --navy: #19365c;
    --text: #263b57;
    --muted: #71809a;
    --page-bg: #fff6fa;
    --white: #ffffff;
    --border: #e9dce3;
    --color-primary: #e63e80;
    --color-white: #ffffff;
    --color-border: #f5d7e3;
    --color-text-muted: #71809a;
    --color-error-text: #b3261e;
    --color-error-bg: #fff0f0;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    margin: 0;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--navy);
    background: var(--page-bg);
}

a {
    color: var(--pink);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    display: block;
    max-width: 100%;
}

.topbar {
    min-height: 86px;
    background: #ffffff;
    display: flex;
    align-items: center;
    padding: 0 27px;
    border-bottom: 1px solid var(--pink-border);
    flex-shrink: 0;
}

.topbar__inner {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 32px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand__mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #fce5ef;
    color: var(--pink);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand__name {
    color: var(--navy);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.brand__sub {
    color: #a67c92;
    font-size: 8px;
    letter-spacing: 1px;
    font-weight: 700;
}

.topnav {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
    margin-left: 24px;
}

.topnav a {
    color: var(--navy);
    font-size: 12px;
    font-weight: 600;
}

.topnav a:hover {
    color: var(--pink);
}

.topbar__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.help-btn {
    width: 30px;
    height: 30px;
    border: 1px solid var(--pink-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pink);
    font-size: 14px;
    font-weight: 700;
}

.help-btn:hover {
    background: var(--pink-light);
    text-decoration: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    transition: background 0.2s ease;
}

.btn--login {
    min-height: 39px;
    padding: 0 24px;
    background: var(--pink);
    color: #ffffff;
    font-size: 13px;
    border-radius: 7px;
}

.btn--login:hover {
    background: var(--pink-dark);
    color: #ffffff;
    text-decoration: none;
}

main.layout {
    flex: 1 0 auto;
    width: 100%;
    min-height: calc(100vh - 86px);
    padding: 21px 18px;
    display: grid;
    grid-template-columns: 52% 48%;
    align-items: stretch;
    background: var(--page-bg);
    gap: 0;
}

.intro {
    position: relative;
    min-height: 670px;
    border-radius: 14px;
    overflow: hidden;
    background:
        linear-gradient(
            rgba(196, 65, 116, 0.78),
            rgba(196, 65, 116, 0.78)
        ),
        url("../images/barangayhall.png") center / cover no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 55px 10%;
    text-align: center;
    color: #ffffff;
}

.intro__title {
    position: relative;
    z-index: 1;
    margin: 0 0 15px;
    font-size: 36px;
    line-height: 1.2;
    font-weight: 700;
    color: #a66b87;
}

.intro__lead {
    position: relative;
    z-index: 1;
    max-width: 470px;
    margin: 0 auto 32px;
    font-size: 15px;
    line-height: 1.7;
    color: #8b7180;
}



.feature-list {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 490px;
    margin: 0;
    padding: 26px 24px;
    list-style: none;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(5px);
    box-shadow: 0 8px 28px rgba(104, 31, 64, 0.12);
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 26px;
}

.feature:last-child {
    margin-bottom: 0;
}

.feature__icon {
    flex: 0 0 29px;
    width: 29px;
    height: 29px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    color: var(--pink);
}

.feature__copy h2 {
    margin: 0 0 7px;
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
}

.feature__copy p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #61718b;
}

.intro__photo,
.intro__photo-placeholder {
    display: none;
}

.form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px 8%;
    min-width: 0;
}

.form-card {
    width: 100%;
    max-width: 450px;
    background: #ffffff;
    border: 1px solid var(--pink-border);
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(214, 113, 153, 0.07);
    padding: 35px 32px;
}

.form-card__title {
    margin: 0 0 10px;
    font-size: 29px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--navy);
}

.form-card__subtitle {
    margin: 0 0 28px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--muted);
}

.field {
    display: flex;
    flex-direction: column;
    margin-bottom: 19px;
    min-width: 0;
}

.field label {
    display: block;
    margin-bottom: 7px;
    color: var(--navy);
    font-size: 12px;
    font-weight: 700;
}

.field input,
.field select {
    width: 100%;
    min-height: 40px;
    padding: 10px 12px;
    border: 1px solid var(--pink-border);
    border-radius: 7px;
    background: #fffafd;
    color: var(--navy);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus {
    border-color: var(--pink);
    box-shadow: 0 0 0 3px rgba(230, 62, 128, 0.1);
    background: #ffffff;
}

.field input::placeholder {
    color: #a99aa4;
}

.field select {
    cursor: pointer;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.password-wrap {
    position: relative;
    width: 100%;
}

.password-wrap input {
    padding-right: 42px;
}

.toggle-visibility {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #a58b9a;
    font-size: 17px;
    cursor: pointer;
    padding: 5px;
}

.toggle-visibility:hover {
    color: var(--pink);
}

.checkbox-line {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 5px 0 22px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
    cursor: pointer;
}

.checkbox-line input {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    margin: 2px 0 0;
    accent-color: var(--pink);
}

.checkbox-line a {
    color: var(--pink);
    font-weight: 700;
}

.btn--primary {
    min-height: 43px;
    padding: 11px 18px;
    background: var(--pink);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    border-radius: 7px;
}

.btn--primary:hover {
    background: var(--pink-dark);
}

.btn--primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.btn--block {
    width: 100%;
    display: flex;
}

.form-card__footer {
    margin: 22px 0 0;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--navy);
}

.form-card__footer a {
    color: var(--pink);
}

.field-error {
    display: block;
    margin-top: 6px;
    color: var(--color-error-text);
    font-size: 12px;
    line-height: 1.5;
}

.field-error--block {
    padding: 10px 12px;
    margin: 0 0 18px;
    background: var(--color-error-bg);
    border: 1px solid #e3aaaa;
    border-radius: 5px;
}

.field.has-error input,
.field.has-error select {
    border-color: var(--color-error-text);
}

.alert {
    padding: 12px;
    margin-bottom: 18px;
    border-radius: 6px;
    font-size: 12px;
}

.alert--success {
    background: #e6f4ea;
    color: #1e7b34;
}

.alert--error {
    background: #fff0f0;
    color: #a52a2a;
}

.sitefooter {
    flex-shrink: 0;
    width: 100%;
    border-top: 1px solid var(--pink-border);
    background: #ffffff;
}

.sitefooter__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12.5px;
    color: var(--muted);
}

.sitefooter__brand {
    color: var(--pink);
    font-weight: 700;
}

.sitefooter__links {
    display: flex;
    gap: 18px;
}

.sitefooter__links a {
    color: var(--muted);
}

.sitefooter__links a:hover {
    color: var(--pink);
}

@media (max-width: 1050px) {
    main.layout {
        grid-template-columns: 48% 52%;
    }

    .form-panel {
        padding: 25px 5%;
    }

    .form-card {
        padding: 28px 24px;
    }

    .intro {
        padding: 40px 7%;
    }
}

@media (max-width: 900px) {
    .topbar {
        min-height: 72px;
        padding: 0 18px;
    }

    .topbar__inner {
        gap: 18px;
    }

    main.layout {
        grid-template-columns: 1fr;
        padding: 12px;
        min-height: calc(100vh - 72px);
    }

    .intro {
        min-height: 370px;
        border-radius: 12px 12px 0 0;
        padding: 45px 8%;
    }

    .intro__title {
        font-size: 30px;
    }

    .form-panel {
        padding: 30px 18px;
    }

    .form-card {
        max-width: 530px;
        padding: 32px;
    }

    .field-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 520px) {
    .topbar {
        padding: 0 15px;
    }

    .topbar__inner {
        gap: 10px;
    }

    .topnav {
        display: none;
    }

    .brand__name {
        font-size: 16px;
    }

    .topbar__actions {
        margin-left: auto;
        gap: 9px;
    }

    .btn--login {
        padding: 0 14px;
        font-size: 12px;
    }

    main.layout {
        padding: 10px;
    }

    .intro {
        min-height: 330px;
        padding: 30px 18px;
    }

    .intro__title {
        font-size: 26px;
    }

    .intro__lead {
        font-size: 13px;
        margin-bottom: 24px;
    }

    .feature-list {
        padding: 20px 16px;
    }

    .feature__copy h2 {
        font-size: 13px;
    }

    .feature__copy p {
        font-size: 12px;
    }

    .form-panel {
        padding: 25px 5px;
    }

    .form-card {
        padding: 25px 18px;
    }

    .form-card__title {
        font-size: 26px;
    }

    .field-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .sitefooter__inner {
        padding: 20px;
    }
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--pink);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* =========================================
   REGISTER PAGE - MATCH LOGIN PAGE DESIGN
   ========================================= */

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: #fff7fb;
    color: #19365c;
    font-family: Arial, Helvetica, sans-serif;
}

/* Header */

.topbar {
    min-height: 72px;
    padding: 0;
    background: #fff;
    border-bottom: 1px solid #f5d7e3;
    flex-shrink: 0;
}

.topbar__inner {
    width: 100%;
    max-width: 1300px;
    min-height: 72px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    text-decoration: none;
}

.brand__mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fce5ef;
    color: #e93680;
    font-size: 21px;
}

.brand__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.2;
}

.brand__name {
    color: #19365c;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.brand__sub {
    color: #a66b87;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1px;
}

.topbar__actions {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.btn--login {
    min-height: 39px;
    padding: 0 24px;
    border: 0;
    border-radius: 7px;
    background: #e93680;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn--login:hover {
    background: #d92b72;
    color: #fff;
    text-decoration: none;
}

/* Main two-column layout */

main.layout {
    flex: 1 0 auto;
    width: 100%;
    max-width: 1330px;
    min-height: calc(100vh - 145px);
    margin: 0 auto;
    padding: 18px 20px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: stretch;
    gap: 0;
    background: #fff7fb;
}

/* Left image panel */

.intro {
    position: relative;
    min-width: 0;
    min-height: 620px;
    padding: 45px 9%;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        linear-gradient(
            rgba(255, 238, 246, 0.76),
            rgba(255, 230, 241, 0.80)
        ),
        url("../images/barangayhall.png") center / cover no-repeat;
}

.intro__content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 490px;
}

.intro__title {
    margin: 0 0 15px;
    color: #fff;
    font-size: clamp(30px, 3vw, 40px);
    line-height: 1.2;
    font-weight: 800;
}

.intro__lead {
    max-width: 470px;
    margin: 0 auto 30px;
    color: #fff;
    font-size: 14px;
    line-height: 1.7;
}

/* Feature card */

.feature-list {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 490px;
    margin: 0 auto;
    padding: 24px 25px;
    list-style: none;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.90);
    box-shadow: 0 8px 28px rgba(104, 31, 64, 0.08);
    backdrop-filter: blur(5px);
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
}

.feature:last-child {
    margin-bottom: 0;
}

.feature__icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #fce5ef;
    color: #e93680;
    font-size: 21px;
    font-weight: 700;
}

.feature__copy {
    min-width: 0;
}

.feature__copy h2 {
    margin: 0 0 6px;
    color: #19365c;
    font-size: 14px;
    font-weight: 700;
}

.feature__copy p {
    margin: 0;
    color: #61718b;
    font-size: 12px;
    line-height: 1.65;
}

/* Registration form panel */

.form-panel {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px 7%;
}

.form-card {
    width: 100%;
    max-width: 450px;
    padding: 30px;
    background: #fff;
    border: 1px solid #f5d7e3;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(214, 113, 153, 0.07);
}

.form-card__title {
    margin: 0 0 10px;
    color: #19365c;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 800;
}

.form-card__subtitle {
    margin: 0 0 24px;
    color: #71809a;
    font-size: 12px;
    line-height: 1.6;
}

/* Fields */

.field {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin-bottom: 15px;
}

.field label {
    display: block;
    margin-bottom: 6px;
    color: #19365c;
    font-size: 12px;
    font-weight: 700;
}

.field input,
.field select {
    width: 100%;
    min-width: 0;
    min-height: 37px;
    padding: 9px 11px;
    border: 1px solid #f5d7e3;
    border-radius: 7px;
    background: #fffafd;
    color: #19365c;
    font-family: inherit;
    font-size: 12px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.field input::placeholder {
    color: #a99aa4;
}

.field input:focus,
.field select:focus {
    border-color: #e93680;
    box-shadow: 0 0 0 3px rgba(233, 54, 128, 0.10);
    background: #fff;
}

.field select {
    cursor: pointer;
}

.field-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
}

.password-wrap {
    position: relative;
    width: 100%;
}

.password-wrap input {
    padding-right: 42px;
}

.toggle-visibility {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    padding: 5px;
    border: 0;
    background: transparent;
    color: #a58b9a;
    font-size: 17px;
    cursor: pointer;
}

.toggle-visibility:hover {
    color: #e93680;
}

/* Agreement and submit button */

.checkbox-line {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 5px 0 18px;
    color: #71809a;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.6;
    cursor: pointer;
}

.checkbox-line input {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    margin: 2px 0 0;
    accent-color: #e93680;
}

.checkbox-line a,
.form-card__footer a {
    color: #e93680;
    font-weight: 700;
}

.btn--primary {
    min-height: 42px;
    padding: 11px 18px;
    border: 0;
    border-radius: 7px;
    background: #e93680;
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.btn--primary:hover {
    background: #d92b72;
}

.btn--block {
    display: flex;
    justify-content: center;
    width: 100%;
}

.btn--primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.form-card__footer {
    margin: 18px 0 0;
    color: #19365c;
    text-align: center;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.7;
}

.form-card__footer a {
    margin-left: 3px;
}

/* Validation messages */

.field-error {
    display: block;
    margin-top: 6px;
    color: #b3261e;
    font-size: 11px;
    line-height: 1.5;
}

.field-error--block {
    padding: 10px 12px;
    margin: 0 0 15px;
    background: #fff0f0;
    border: 1px solid #e3aaaa;
    border-radius: 6px;
}

.alert {
    padding: 11px 12px;
    margin-bottom: 15px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.5;
}

.alert--success {
    background: #e6f4ea;
    color: #1e7b34;
}

.alert--error {
    background: #fff0f0;
    color: #a52a2a;
}

/* Footer */

.sitefooter {
    flex-shrink: 0;
    width: 100%;
    border-top: 1px solid #f5d7e3;
    background: #fff;
}

.sitefooter__inner {
    width: 100%;
    max-width: 1330px;
    margin: 0 auto;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    color: #71809a;
    font-size: 11px;
}

.sitefooter__brand {
    color: #e93680;
    font-weight: 800;
}

/* Tablet */

@media (max-width: 1050px) {
    main.layout {
        grid-template-columns: 1fr 0.95fr;
        padding: 15px;
    }

    .intro {
        padding: 35px 6%;
    }

    .form-panel {
        padding: 20px 5%;
    }

    .form-card {
        padding: 25px 22px;
    }

    .feature-list {
        padding: 20px;
    }
}

/* Mobile */

@media (max-width: 800px) {
    main.layout {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 12px;
    }

    .intro {
        min-height: 390px;
        padding: 35px 7%;
        border-radius: 12px;
    }

    .intro__title {
        font-size: 30px;
    }

    .intro__lead {
        font-size: 13px;
        margin-bottom: 22px;
    }

    .feature-list {
        max-width: 500px;
    }

    .form-panel {
        padding: 22px 8px;
    }

    .form-card {
        max-width: 530px;
        padding: 30px;
    }
}

@media (max-width: 520px) {
    .topbar__inner {
        padding: 12px 16px;
    }

    .brand__name {
        font-size: 17px;
    }

    .brand__sub {
        font-size: 7px;
    }

    .btn--login {
        min-height: 36px;
        padding: 0 16px;
        font-size: 11px;
    }

    main.layout {
        padding: 10px;
    }

    .intro {
        min-height: 350px;
        padding: 30px 16px;
    }

    .intro__title {
        font-size: 26px;
    }

    .intro__lead {
        font-size: 12px;
    }

    .feature-list {
        padding: 18px 15px;
    }

    .feature {
        gap: 11px;
        margin-bottom: 18px;
    }

    .feature__icon {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .feature__copy h2 {
        font-size: 12px;
    }

    .feature__copy p {
        font-size: 11px;
    }

    .form-card {
        padding: 25px 18px;
    }

    .form-card__title {
        font-size: 25px;
    }

    .field-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .sitefooter__inner {
        justify-content: center;
        text-align: center;
        padding: 16px;
    }
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid #e93680;
    outline-offset: 2px;
}

