@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap");
/* @import url("../login.css"); */

:root {
    --navy: #06257d;
    --cyan: #09b5d2;
    --ink: #111a3c;
    --muted: #5c6275;
    --line: #d3d7df;
    --success: #2aa44f;
}
* {
    box-sizing: border-box;
}
html,
body {
    min-height: 100%;
}
body {
    margin: 0;
    font-family: "DM Sans", Arial, sans-serif;
    color: var(--ink);
    background: #eaf5fc;
}
.auth-page-body {
    min-height: 100vh;
    background: url("../../images/desktop-background.png") center/cover fixed
        no-repeat;
    overflow-x: hidden;
}
.auth-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 2.4vw 6.9vw 1vw;
}
.auth-layout {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 6vw;
}
.brand-panel {
    text-align: center;
    min-width: 0;
}
.brand-logo {
    width: min(100%, 330px);
    display: block;
    margin: 0 auto;
}
.benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 1.75rem;
}
.benefit {
    min-height: 145px;
    padding: 0 0.65rem;
    border-right: 1px solid #c5ccd3;
}
.benefit:last-child {
    border-right: 0;
}
.benefit-icon {
    width: 58px;
    height: 58px;
    border: 1.5px solid #15b7d2;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 0.65rem;
    color: #07348d;
    font-size: 1.75rem;
}
.benefit-icon.heart,
.benefit-icon.people {
    color: #06a9c9;
}
.benefit h2 {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    /* color: #09196c; */
    color: #0374b9;
}
.benefit p {
    font-size: 0.74rem;
    line-height: 1.5;
    margin: 0;
    /* color: #06145c; */
    color: #0374b9;
}
.auth-card {
    position: relative;
    width: 100%;
    max-width: 520px;
    justify-self: end;
    padding: 2.1rem 2.5rem 1.8rem;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 18px;
    box-shadow: 0 3px 16px rgba(26, 63, 96, 0.1);
}
.auth-card--login {
    max-width: 520px;
}
.auth-card--create {
    max-width: 550px;
    padding-top: 1.7rem;
    padding-bottom: 1.3rem;
}
.auth-card-header {
    text-align: center;
}
.card-icon {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    margin: 0 auto 0.75rem;
    color: #07379d;
    background: #e9f0fc;
    border-radius: 50%;
    font-size: 1.55rem;
}
.auth-title {
    color: #071c79;
    font-size: 1.8rem;
    line-height: 1.14;
    font-weight: 700;
    margin: 0;
}
.auth-subtitle,
.auth-description {
    color: #4d5365;
    font-size: 1rem;
    margin: 0.4rem 0 0;
    line-height: 1.4;
}
.auth-description {
    font-size: 0.88rem;
    max-width: 400px;
    margin: 0.75rem auto 0;
}
.auth-divider {
    width: 60px;
    height: 3px;
    border-radius: 99px;
    background: #18b1ce;
    margin: 0.9rem auto 1.35rem;
}
.auth-card--create .auth-divider {
    margin: 0.8rem auto 0.85rem;
}
.auth-form {
    margin-top: 1.5rem;
}
.auth-card--create .auth-form {
    margin-top: 1.2rem;
}
.form-group {
    margin-bottom: 1.1rem;
}
.auth-card--create .form-group {
    margin-bottom: 0.7rem;
}
.form-label {
    display: block;
    font-size: 0.85rem;
    color: #121937;
    font-weight: 700;
    margin-bottom: 0.4rem;
}
.input-wrap {
    position: relative;
}
.field-icon {
    position: absolute;
    z-index: 2;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #0a3694;
    font-size: 1.15rem;
}
.auth-input {
    display: block;
    width: 100%;
    height: 52px;
    padding: 0.7rem 3.2rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #293044;
    font-size: 0.88rem;
    background: #fff;
    outline: none;
    transition: 0.2s;
}
.auth-input::placeholder {
    color: #7b8091;
}
.auth-input:focus {
    border-color: #13afd0;
    box-shadow: 0 0 0 0.18rem rgba(19, 175, 208, 0.13);
}
.auth-input.is-invalid {
    border-color: #dc3545;
}
.toggle-password {
    position: absolute;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #52596b;
    font-size: 1.15rem;
    padding: 0.25rem;
    line-height: 1;
}
.invalid-feedback {
    color: #d52c3f;
    font-size: 0.78rem;
    min-height: 1.05rem;
    padding-top: 0.25rem;
}
.auth-link {
    color: #083da8;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
}
.auth-link:hover {
    color: #00aeca;
    text-decoration: underline;
}
.forgot-link {
    display: block;
    width: max-content;
    margin: -0.1rem 0 1.15rem auto;
}
.btn-auth {
    width: 100%;
    min-height: 56px;
    border: 0;
    border-radius: 8px;
    padding: 0.7rem 1rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(100deg, #09288b 0%, #0055cc 48%, #09b9d0 100%);
    box-shadow: none;
}
.btn-auth:hover,
.btn-auth:focus {
    color: white;
    filter: brightness(1.04);
}
.btn-auth i {
    margin-right: 0.65rem;
}
.back-link {
    display: block;
    width: max-content;
    margin: 1.3rem auto 0;
    font-size: 0.95rem;
}
.back-link i {
    margin-right: 0.65rem;
}
.alert-container:empty {
    display: none;
}
.alert-container:not(:empty) {
    position: absolute;
    z-index: 3;
    top: 0.75rem;
    right: 1rem;
    left: 1rem;
}
.alert-container .alert {
    font-size: 0.85rem;
    margin: 0;
    padding: 0.6rem 0.75rem;
    box-shadow: 0 3px 12px rgba(14, 31, 75, 0.14);
}
.password-strength {
    margin: -0.15rem 0 0.7rem;
}
.strength-bars {
    display: flex;
    gap: 5px;
    margin-bottom: 0.5rem;
}
.strength-bar {
    height: 5px;
    flex: 1;
    border-radius: 999px;
    background: #c7cad2;
}
.strength-bar.active.weak {
    background: #e33;
}
.strength-bar.active.fair {
    background: #f1a600;
}
.strength-bar.active.good {
    background: #16a9cf;
}
.strength-bar.active.strong {
    background: #2aa44f;
}
.strength-label {
    color: #6d7180;
    font-size: 0.8rem;
}
.strength-label span {
    color: #d3252c;
    font-weight: 600;
}
.strength-label.fair span {
    color: #e79000;
}
.strength-label.good span {
    color: #0a9bbc;
}
.strength-label.strong span {
    color: #229447;
}
.requirements {
    margin: 0 0 0.8rem;
    padding: 0.75rem 0.9rem;
    border-radius: 8px;
    background: linear-gradient(100deg, #f1f5fd, #eaf2fd);
}
.requirements h3 {
    margin: 0 0 0.45rem;
    color: #08328d;
    font-size: 0.76rem;
    font-weight: 700;
}
.requirements-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem 0.7rem;
}
.requirement {
    font-size: 0.69rem;
    color: #31394b;
}
.requirement i {
    color: #bac0c9;
    margin-right: 0.35rem;
}
.requirement.met i {
    color: var(--success);
}
.site-footer {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 5;
    padding: 0 7.2vw 0.8rem;
    color: white;
    font-size: 0.75rem;
}
.footer-row {
    display: grid;
    grid-template-columns: 1.35fr 0.8fr;
    gap: 2rem;
    align-items: center;
    padding: 0.75rem 0.9rem;
    border-top: 1px solid rgba(111, 176, 255, 0.2);
    border-bottom: 1px solid rgba(111, 176, 255, 0.2);
}
.contact-list {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}
.contact-list span i {
    color: #6db6ff;
    margin-right: 0.55rem;
}
.copyright {
    text-align: right;
    line-height: 1.4;
}
.footer-credit {
    text-align: center;
    margin: 0.8rem 0 0;
    font-size: 0.82rem;
}
.footer-credit strong {
    color: #0bbce2;
    font-weight: 600;
}
@media (min-width: 768px) {
    .auth-page-body {
        height: 100vh;
        overflow: hidden;
    }
    .auth-shell {
        height: 100vh;
    }
    .auth-main {
        min-height: 0;
        padding-bottom: 5.75rem;
    }
}
@media (max-width: 991.98px) {
    .auth-main {
        padding: 2.5rem 1.5rem;
    }
    .auth-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 620px;
    }
    .brand-panel {
        order: 1;
    }
    .auth-card {
        order: 2;
        justify-self: center;
    }
    .benefits {
        margin-top: 1.5rem;
    }
    .site-footer {
        padding: 0 2rem 1.2rem;
    }
    .auth-logo {
        max-width: 330px;
    }
}
@media (max-width: 767.98px) {
    .auth-page-body {
        background-image: url("../../images/mobile-background.png");
        background-position: center top;
        background-attachment: fixed;
    }
    .auth-main {
        align-items: flex-start;
        padding: 2rem 1rem 7rem;
    }
    .auth-layout {
        gap: 1.25rem;
    }
    .brand-logo {
        max-width: 270px;
    }
    .benefits {
        display: none;
    }
    .auth-card {
        padding: 2rem 1.25rem;
        border-radius: 18px;
    }
    .auth-card--create {
        padding: 1.7rem 1.15rem;
    }
    .card-icon {
        width: 64px;
        height: 64px;
        font-size: 1.6rem;
        margin-bottom: 0.85rem;
    }
    .auth-title {
        font-size: 1.65rem;
    }
    .auth-subtitle {
        font-size: 0.98rem;
    }
    .auth-description {
        font-size: 0.9rem;
    }
    .auth-divider {
        margin: 1rem auto 1.5rem;
        width: 58px;
    }
    .auth-form {
        margin-top: 1.55rem;
    }
    .auth-input {
        height: 58px;
        font-size: 0.9rem;
    }
    .btn-auth {
        min-height: 60px;
        font-size: 1rem;
    }
    .requirements-grid {
        grid-template-columns: 1fr;
    }
    .back-link {
        margin-top: 1.5rem;
    }
    .site-footer {
        padding: 0 0.8rem 0.45rem;
    }
    .footer-row {
        display: block;
        padding: 0.4rem 0;
        border-bottom: 0;
    }
    .contact-list {
        justify-content: center;
        font-size: 0.64rem;
    }
    .contact-list span:nth-child(2),
    .contact-list span:nth-child(3),
    .copyright,
    .footer-credit {
        display: none;
    }
}
@media (min-width: 768px) and (max-width: 991.98px) {
    .auth-main {
        height: 100%;
        padding: 1.25rem 1rem 5.6rem;
        align-items: center;
    }
    .auth-layout {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 0.85rem;
        max-width: 530px;
    }
    .brand-panel {
        display: block;
        order: 0;
        width: 100%;
    }
    .brand-logo {
        width: 220px;
        max-width: 60vw;
        margin: 0 auto;
    }
    .benefits {
        display: none;
    }
    .auth-card {
        order: 1;
        width: 100%;
        margin: 0;
        justify-self: auto;
    }
    .auth-card--create {
        max-width: 530px;
    }
    .site-footer {
        display: block;
        padding: 0 2rem 0.55rem;
    }
    .footer-row {
        padding: 0.45rem 0.5rem;
    }
    .footer-credit {
        margin: 0.4rem 0 0;
        font-size: 0.72rem;
    }
    .contact-list {
        justify-content: center;
        gap: 1.4rem;
    }
    .copyright {
        display: none;
    }
}
@media (max-height: 700px) and (min-width: 992px) {
    .auth-main {
        padding-top: 1rem;
    }
    .brand-logo {
        max-width: 285px;
    }
    .benefits {
        margin-top: 1rem;
    }
    .benefit {
        min-height: 125px;
    }
    .auth-card {
        padding: 1.55rem 2.2rem 1.3rem;
    }
    .auth-card--create {
        padding-top: 1.25rem;
    }
    .card-icon {
        width: 54px;
        height: 54px;
        margin-bottom: 0.55rem;
    }
    .auth-title {
        font-size: 1.6rem;
    }
    .auth-divider {
        margin: 0.7rem auto 1rem;
    }
    .auth-form {
        margin-top: 1.05rem;
    }
    .auth-card--create .auth-form {
        margin-top: 0.85rem;
    }
    .form-group {
        margin-bottom: 0.8rem;
    }
    .site-footer {
        padding-bottom: 0.45rem;
    }
    .footer-row {
        padding: 0.5rem 0.75rem;
    }
    .footer-credit {
        margin: 0.45rem 0 0;
    }
}

/* Reference-scale desktop composition.  The viewport remains fixed; only the
   main content region becomes scrollable when a device is shorter than the
   supplied mockup. */
@media (min-width: 992px) {
    .auth-page-body {
        overflow: hidden;
    }
    .auth-main {
        height: calc(100vh - 132px);
        flex: none;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 2.4rem 7.1vw 1rem;
    }
    .auth-main::-webkit-scrollbar {
        width: 6px;
    }
    .auth-main::-webkit-scrollbar-thumb {
        background: rgba(5, 40, 125, 0.28);
        border-radius: 8px;
    }
    .auth-layout {
        max-width: 1180px;
        min-height: 650px;
        grid-template-columns: 1fr 1fr;
        gap: 6vw;
        align-items: center;
    }
    .brand-panel {
        padding-top: 0;
    }
    .brand-logo {
        width: 330px;
        min-width: 0;
    }
    .benefits {
        margin-top: 1.75rem;
    }
    .benefit {
        min-height: 145px;
        padding: 0 0.65rem;
    }
    .benefit-icon {
        width: 58px;
        height: 58px;
        margin-bottom: 0.65rem;
        font-size: 1.75rem;
    }
    .benefit h2 {
        font-size: 0.9rem;
        margin-bottom: 0.35rem;
    }
    .benefit p {
        font-size: 0.74rem;
        line-height: 1.5;
    }
    .auth-card {
        max-width: 520px;
        padding: 2.1rem 2.5rem 1.8rem;
        border-radius: 18px;
        box-shadow: 0 3px 16px rgba(26, 63, 96, 0.1);
    }
    .alert-container:not(:empty) {
        right: 1rem;
        left: 1rem;
    }
    .auth-card--login {
        max-width: 520px;
        margin-top: 0;
    }
    .auth-card--create {
        max-width: 550px;
        padding: 1.7rem 2.5rem 1.3rem;
    }
    .card-icon {
        width: 62px;
        height: 62px;
        margin-bottom: 0.75rem;
        font-size: 1.55rem;
    }
    .auth-title {
        font-size: 1.8rem;
    }
    .auth-subtitle {
        font-size: 1rem;
        margin-top: 0.4rem;
    }
    .auth-description {
        max-width: 400px;
        font-size: 0.88rem;
        margin-top: 0.75rem;
    }
    .auth-divider {
        width: 60px;
        margin: 0.9rem auto 1.35rem;
    }
    .auth-card--create .auth-divider {
        margin: 0.8rem auto 0.85rem;
    }
    .auth-form {
        margin-top: 1.5rem;
    }
    .auth-card--create .auth-form {
        margin-top: 1.2rem;
    }
    .form-group {
        margin-bottom: 1.1rem;
    }
    .auth-card--create .form-group {
        margin-bottom: 0.7rem;
    }
    .form-label {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }
    .field-icon {
        left: 1rem;
        font-size: 1.15rem;
    }
    .auth-input {
        height: 52px;
        padding: 0.7rem 3.2rem;
        border-radius: 8px;
        font-size: 0.88rem;
    }
    .toggle-password {
        right: 0.8rem;
        font-size: 1.15rem;
    }
    .forgot-link {
        margin-bottom: 1.15rem;
    }
    .btn-auth {
        min-height: 56px;
        border-radius: 8px;
        font-size: 1rem;
    }
    .back-link {
        margin-top: 1.3rem;
        font-size: 0.95rem;
    }
    .password-strength {
        margin: -0.15rem 0 0.7rem;
    }
    .requirements {
        margin-bottom: 0.8rem;
        padding: 0.75rem 0.9rem;
    }
    .requirements h3 {
        margin-bottom: 0.45rem;
        font-size: 0.76rem;
    }
    .requirements-grid {
        gap: 0.35rem 0.7rem;
    }
    .requirement {
        font-size: 0.69rem;
    }
    .site-footer {
        padding: 0 7.2vw 1.25rem;
        font-size: 0.85rem;
    }
    .footer-row {
        padding: 1.05rem 0.9rem;
    }
    .footer-credit {
        margin: 1.25rem 0 0;
        font-size: 0.92rem;
    }
}
@media (min-width: 992px) and (max-height: 860px) {
    .auth-main {
        height: calc(100vh - 104px);
    }
    .auth-layout {
        min-height: 760px;
    }
    .site-footer {
        padding-bottom: 0.65rem;
    }
    .footer-row {
        padding: 0.55rem 0.75rem;
    }
    .footer-credit {
        margin: 0.5rem 0 0;
    }
}
/* Hide native number steppers without changing numeric input validation. */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}
