body { background: #f6faf9; color: #173f43; }
.navbar { padding: 22px max(24px, calc((100vw - 1160px) / 2)); gap: 20px; }
.navbar .logo { display: flex; align-items: center; color: #173f43; letter-spacing: 1px; }
.auth-buttons { align-items: center; flex-shrink: 0; }
.login-btn, .signup-btn, .submit-btn { border-radius: 12px; min-height: 44px; }
.signup-btn, .submit-btn { background: #156c76; color: #fff; }
.hero { width: 100%; gap: 64px; margin: 64px auto; padding: 24px; }
#hero-content-container { flex: 1 1 55%; min-width: 0; }
.hero-content { max-width: 620px; }
.eyebrow { color: #276b70; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 24px; }
.hero-title { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.12; letter-spacing: -2px; color: #173f43; }
.hero-title span { color: #347b82; }
.hero-text { max-width: 520px; line-height: 1.75; color: #52696b; margin-bottom: 0; }
.hero-note { font-size: 13px; color: #52696b; margin-top: 24px; padding-top: 20px; border-top: 1px solid #cde4de; }
.hero-image { flex: 1 1 40%; min-width: 0; padding: 44px 28px; background: #e0f0ec; border: 1px solid #cde4de; border-radius: 48% 48% 24px 24px; display: flex; flex-direction: column-reverse; align-items: center; gap: 24px; }
.hero-image img { max-width: 300px; }
.image-caption { color: #325e60; text-align: center; font-size: 15px; }
.footer { color: #52696b; }
.modal { overflow-y: auto; overscroll-behavior: contain; padding: 16px 0; }
.modal-content { margin: 2vh auto; padding: 32px; max-height: 92dvh; border-radius: 20px; }
.close-modal { background: transparent; border: 0; width: 44px; height: 44px; top: 6px; right: 8px; cursor: pointer; }
.form-group > div { min-width: 0; }
.form-group input { min-width: 0; max-width: 100%; font-size: 16px; }
.password-hint { color: #52696b; font-size: 13px; line-height: 1.5; margin-bottom: 16px; }
#signupModal {
    padding: 24px 16px;
    background: rgba(15, 40, 43, 0.55);
    backdrop-filter: blur(6px);
}
#signupModal .signup-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 600px;
    max-height: calc(100dvh - 48px);
    margin: max(0px, calc((100dvh - 760px) / 2)) auto 0;
    padding: 0;
    border: 1px solid #dce9e5;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(9, 37, 40, 0.25);
}
.signup-header {
    flex-shrink: 0;
    position: relative;
    padding: 28px 32px 24px;
    background: #f1f8f5;
    border-bottom: 1px solid #dce9e5;
}
.signup-brand { display: flex; align-items: center; gap: 8px; color: #276b70; font-size: 12px; letter-spacing: 1.5px; font-weight: 700; margin-bottom: 20px; }
.signup-brand img { object-fit: contain; }
.signup-header h2 { font-size: 28px; line-height: 1.2; letter-spacing: -0.7px; color: #173f43; margin: 0 0 10px; }
.signup-header p { font-size: 14px; line-height: 1.5; color: #52696b; }
.signup-header .close-modal { top: 16px; right: 16px; color: #52696b; font-size: 26px; font-weight: 400; border-radius: 50%; }
.signup-header .close-modal:hover { color: #173f43; background: #e0eeea; }
.signup-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 24px 32px; }
.signup-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.signup-requirements { margin: 0 0 18px; color: #52696b; font-size: 13px; }
.signup-field { min-width: 0; }
.signup-field-wide { grid-column: 1 / -1; }
.signup-field label { color: #294b4e; font-weight: 600; font-size: 13px; margin-bottom: 8px; }
.field-optional { color: #657b7d; font-weight: 400; font-size: 12px; }
.signup-field input {
    display: block;
    appearance: none;
    width: 100%;
    min-width: 0;
    height: 46px;
    padding: 11px 13px;
    border: 1px solid #ccdcd8;
    border-radius: 10px;
    background: #fff;
    font-family: inherit;
    font-size: 16px;
    color: #173f43;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.signup-field input::placeholder { color: #738587; font-size: 14px; }
.signup-field input:focus { border-color: #156c76; outline: none; box-shadow: 0 0 0 3px #156c761a; }
.signup-password-hint { color: #52696b; font-size: 12px; line-height: 1.6; margin: 14px 0 20px; }
.signup-submit { display: flex; align-items: center; justify-content: center; gap: 12px; height: 48px; margin: 0; border-radius: 10px; background: #156c76; font-weight: 600; }
.signup-submit:hover { background: #105761; }
.signup-submit span { font-size: 20px; }
.signup-footer { padding-top: 20px; margin-top: 22px; border-top: 1px solid #e5eeeb; text-align: center; font-size: 13px; color: #52696b; }
.signup-footer a { color: #156c76; font-weight: 700; text-decoration: none; margin-left: 4px; }
.signup-footer a:hover { text-decoration: underline; }
.signup-errors { padding: 14px 16px; margin-bottom: 20px; border: 1px solid #edc9c5; border-radius: 10px; background: #fff6f4; color: #93392f; font-size: 13px; line-height: 1.6; }
.signup-errors p { font-weight: 700; margin-bottom: 4px; }
.signup-errors ul { padding-left: 18px; }
@media (max-width: 480px) {
    #signupModal { padding: 12px; }
    #signupModal .signup-card { max-height: calc(100dvh - 24px); margin: 0 auto; border-radius: 18px; }
    .signup-header { padding: 22px 20px 20px; }
    .signup-header h2 { font-size: 24px; }
    .signup-brand { margin-bottom: 16px; }
    .signup-scroll { padding: 22px 20px; }
    .signup-fields { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .signup-header .close-modal { top: 10px; right: 10px; }
}
:focus-visible { outline: 3px solid #147d92; outline-offset: 3px; }
@media (max-width: 768px) {
    .navbar { padding: 16px; gap: 12px; flex-wrap: wrap; }
    .navbar .logo { font-size: 20px; }
    .auth-buttons { gap: 8px; }
    .login-btn, .signup-btn { padding: 12px; font-size: 13px; }
    .hero { margin: 24px auto; padding: 16px 24px; gap: 32px; }
    .hero-content { margin: 0; }
    .hero-title { letter-spacing: -1px; }
    .hero-image { width: min(100%, 360px); padding: 28px; }
    .hero-image img { width: 70%; }
    .modal-content { padding: 32px 20px 24px; }
}

/* A welcoming return to the couple's shared space. */
#loginModal { padding: 24px 16px; background: #173e3b80; backdrop-filter: blur(6px); }
#loginModal .login-card { width: 100%; max-width: 460px; max-height: calc(100dvh - 48px); margin: max(0px, calc((100dvh - 660px) / 2)) auto 0; padding: 0; border: 1px solid #dce8df; border-radius: 26px; background: #fff; box-shadow: 0 24px 80px #143c3a33; overflow-y: auto; overscroll-behavior: contain; }
.login-header { position: relative; padding: 24px 32px 28px; border-bottom: 1px solid #e1ebe1; background: radial-gradient(ellipse at 100% 100%, #e2eedc 0, transparent 70%), #f3f8f1; }
.login-brand { display: flex; align-items: center; gap: 8px; color: #315b4c; font-size: 16px; font-weight: 700; letter-spacing: -.4px; }
.login-brand img { object-fit: contain; }
#loginModal .login-close { display: grid; place-items: center; top: 16px; right: 18px; width: 40px; height: 40px; padding: 10px; border: 1px solid #dce7d8; border-radius: 50%; color: #6d8773; background: #ffffffb3; }
#loginModal .login-close:hover { color: #2b5b48; background: #e3efdf; }
.login-close svg { width: 18px; height: 18px; }
.login-welcome-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-top: 28px; border: 1px solid #d7e6d3; border-radius: 16px; background: #ffffffa6; color: #72966d; }
.login-welcome-icon svg { width: 23px; height: 23px; }
.login-eyebrow { margin: 22px 0 9px; color: #729073; font-size: 9px; font-weight: 700; letter-spacing: 1.6px; }
.login-header h2 { margin: 0 0 10px; color: #244f43; font-size: 34px; line-height: 1.2; letter-spacing: -1px; font-weight: 650; }
#loginDescription { margin: 0; max-width: 280px; color: #728571; font-size: 13px; line-height: 1.8; }
.login-body { padding: 27px 32px 25px; }
.login-field { margin-bottom: 21px; }
.login-field label { margin: 0 0 9px; color: #42634e; font-size: 12px; font-weight: 600; }
.login-field input { display: block; width: 100%; height: 49px; min-width: 0; padding: 12px 14px; border: 1px solid #dce5d8; border-radius: 11px; background: #fcfdfb; color: #29513f; font-family: inherit; font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.login-field input::placeholder { color: #92a08d; font-size: 13px; }
.login-field input:focus { outline: none; border-color: #8bb190; box-shadow: 0 0 0 3px #e8f1e5; background: white; }
.login-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.login-label-row a { color: #69896c; font-size: 11px; text-decoration: none; }
.login-label-row a:hover { color: #315f49; text-decoration: underline; text-underline-offset: 3px; }
.login-password-field { position: relative; }
.login-password-field input { padding-right: 68px; }
#toggleLoginPassword { position: absolute; top: 3px; right: 4px; height: 43px; min-width: 57px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: #6b8769; font-family: inherit; font-size: 11px; font-weight: 600; cursor: pointer; }
#toggleLoginPassword:hover { background: #edf4e9; color: #315f49; }
.login-form .login-submit { display: flex; justify-content: center; align-items: center; gap: 13px; min-height: 49px; margin: 5px 0 0; padding: 13px 18px; border: 1px solid #296c5b; border-radius: 11px; color: white; background: #296c5b; font-family: inherit; font-size: 14px; font-weight: 600; box-shadow: 0 3px 6px #28695112; }
.login-form .login-submit:hover { background: #205947; border-color: #205947; }
.login-submit span { font-size: 18px; font-weight: 400; }
.login-footer { margin-top: 24px; padding-top: 20px; border-top: 1px solid #e8eee4; text-align: center; }
.login-footer p { margin: 0; color: #86937f; font-size: 12px; line-height: 1.8; }
.login-footer a { margin-left: 4px; color: #3d795b; font-weight: 600; text-decoration: none; white-space: nowrap; }
.login-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.login-error { padding: 13px 15px; margin: 0 0 22px; border: 1px solid #ecd4cd; border-radius: 11px; background: #fff7f3; color: #925d4c; font-size: 12px; line-height: 1.7; }
.login-error strong { font-weight: 600; }
.login-error p { margin: 3px 0 0; }
#loginModal :focus-visible { outline: 3px solid #98b99a; outline-offset: 3px; }
@media (max-width: 480px) {
    #loginModal { padding: 12px; }
    #loginModal .login-card { max-height: calc(100dvh - 24px); margin: max(0px, calc((100dvh - 660px) / 2)) auto 0; border-radius: 22px; }
    .login-header { padding: 22px 24px 24px; }
    .login-header h2 { font-size: 30px; }
    .login-welcome-icon { margin-top: 23px; }
    .login-body { padding: 24px; }
    #loginModal .login-close { right: 13px; top: 13px; }
}
@media (max-height: 600px) {
    .login-welcome-icon { display: none; }
    .login-header { padding-top: 20px; padding-bottom: 20px; }
    .login-eyebrow { margin-top: 18px; }
}

.signup-terms { padding: 16px; margin: 0 0 20px; border: 1px solid #dce5df; border-radius: 12px; background: #f7faf7; }
.signup-terms label { display: flex; align-items: flex-start; gap: 10px; color: #37565a; font-size: 13px; line-height: 1.65; cursor: pointer; }
.signup-form .signup-terms input[type=checkbox] { appearance: auto; flex: 0 0 19px; width: 19px; height: 19px; margin: 2px 0 0; padding: 0; accent-color: #156c76; cursor: pointer; }
.signup-terms a { color: #156c76; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.signup-terms p { margin: 8px 0 0 29px; color: #697e7b; font-size: 12px; line-height: 1.6; }
