@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=DM+Serif+Display&display=swap');

/* ==============================
BASE
============================== */

:root {
--teal: #0F766E;
--teal-bright: #14B8A6;
--orange: #C65D32;
--ivory: #FAF8F2;
--white: #FFFFFF;
--dark: #172B2A;
--muted: #64716F;
--border: #DCE7E3;
--error: #B42318;
--success: #18794E;
}

*,
*::before,
*::after {
box-sizing: border-box;
}

html {
min-width: 320px;
min-height: 100%;
scroll-behavior: smooth;
}

body {
min-width: 320px;
min-height: 100vh;
margin: 0;
font-family: "DM Sans", sans-serif;
color: var(--dark);
background: var(--ivory);
-webkit-font-smoothing: antialiased;
}

button,
input {
font: inherit;
}

a {
color: inherit;
}

:focus-visible {
outline: 3px solid var(--teal-bright);
outline-offset: 3px;
}

/* ==============================
PAGE
============================== */

.register-page {
width: min(100% - 112px, 1280px);
margin: 0 auto;
padding: 56px 0 38px;
}

/* ==============================
HORIZONTAL INTRODUCTION
============================== */

.register-header {
display: grid;
grid-template-columns: 190px minmax(0, 1fr);
align-items: center;
gap: clamp(35px, 7vw, 105px);
padding: 12px 0 48px;
border-bottom: 1px solid var(--border);
}

.register-logo {
display: inline-flex;
align-items: center;
justify-content: flex-start;
width: fit-content;
}

.register-logo img {
display: block;
width: 160px;
max-width: 100%;
height: auto;
object-fit: contain;
}

.register-intro {
max-width: 680px;
}

.eyebrow {
display: block;
margin-bottom: 12px;
color: var(--teal);
font-size: 0.7rem;
font-weight: 700;
letter-spacing: 0.15em;
line-height: 1.6;
}

.register-intro h1 {
margin: 0 0 12px;
font-family: "DM Serif Display", serif;
font-size: clamp(2.3rem, 4vw, 3.8rem);
font-weight: 400;
line-height: 1.12;
letter-spacing: -0.04em;
}

.register-intro p {
max-width: 570px;
margin: 0;
color: var(--muted);
font-size: 0.98rem;
line-height: 1.85;
}

/* ==============================
FORM INTRODUCTION
============================== */

.register-section {
padding-top: 43px;
}

.section-heading {
margin-bottom: 30px;
}

.section-heading .eyebrow {
margin-bottom: 8px;
}

.section-heading h2 {
margin: 0 0 9px;
font-family: "DM Serif Display", serif;
font-size: clamp(1.9rem, 3vw, 2.6rem);
font-weight: 400;
line-height: 1.2;
letter-spacing: -0.03em;
}

.section-heading p {
margin: 0;
color: var(--muted);
font-size: 0.91rem;
line-height: 1.7;
}

/* ==============================
FORM GRID
============================== */

.register-form {
width: 100%;
}

.form-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
column-gap: clamp(24px, 4vw, 58px);
row-gap: 24px;
}

.form-field {
display: flex;
flex-direction: column;
gap: 9px;
min-width: 0;
}

.form-field label {
color: var(--dark);
font-size: 0.84rem;
font-weight: 600;
}

.form-field input {
width: 100%;
min-width: 0;
min-height: 51px;
padding: 13px 15px;
border: 1px solid var(--border);
border-radius: 8px;
outline: none;
color: var(--dark);
background: var(--white);
font-size: 0.9rem;
transition:
border-color 180ms ease,
box-shadow 180ms ease;
}

.form-field input::placeholder {
color: #9AA6A3;
}

.form-field input:hover {
border-color: #A9C7BF;
}

.form-field input:focus {
border-color: var(--teal);
box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.09);
}

.field-hint {
color: var(--muted);
font-size: 0.75rem;
line-height: 1.5;
}

/* ==============================
PASSWORD FIELDS
============================== */

.password-field {
display: flex;
align-items: center;
min-width: 0;
border: 1px solid var(--border);
border-radius: 8px;
background: var(--white);
transition:
border-color 180ms ease,
box-shadow 180ms ease;
}

.password-field:focus-within {
border-color: var(--teal);
box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.09);
}

.password-field input {
flex: 1;
width: 0;
min-width: 0;
border: 0;
background: transparent;
box-shadow: none;
}

.password-field input:focus {
border: 0;
box-shadow: none;
}

.password-toggle {
flex-shrink: 0;
margin-right: 13px;
padding: 6px 2px;
border: 0;
color: var(--teal);
background: transparent;
font-size: 0.79rem;
font-weight: 700;
cursor: pointer;
}

.password-toggle:hover {
color: var(--orange);
}

.field-message {
font-size: 0.76rem;
line-height: 1.5;
}

.field-message:empty {
display: none;
}

.field-message-error {
color: var(--error);
}

.field-message-success {
color: var(--success);
}

/* ==============================
TERMS AND SUBMISSION
============================== */

.form-bottom {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(220px, 0.7fr);
align-items: center;
gap: 25px 40px;
margin-top: 31px;
padding-bottom: 34px;
border-bottom: 1px solid var(--border);
}

.terms-field {
display: flex;
align-items: flex-start;
gap: 10px;
}

.terms-field input {
width: 16px;
height: 16px;
flex-shrink: 0;
margin: 3px 0 0;
accent-color: var(--teal);
cursor: pointer;
}

.terms-field label {
color: var(--muted);
font-size: 0.79rem;
line-height: 1.8;
}

.terms-field a,
.register-footer a {
color: var(--teal);
font-weight: 700;
text-decoration: none;
}

.terms-field a:hover,
.register-footer a:hover {
color: var(--orange);
text-decoration: underline;
}

.register-submit {
display: flex;
align-items: center;
justify-content: space-between;
gap: 15px;
width: 100%;
min-height: 53px;
padding: 14px 18px;
border: 1px solid var(--teal);
border-radius: 8px;
color: var(--white);
background: var(--teal);
font-size: 0.9rem;
font-weight: 700;
cursor: pointer;
transition:
background 180ms ease,
border-color 180ms ease,
transform 180ms ease;
}

.submit-arrow {
font-size: 1.1rem;
transition: transform 180ms ease;
}

.register-submit:hover {
border-color: #095F59;
background: #095F59;
}

.register-submit:hover .submit-arrow {
transform: translate(2px, -2px);
}

.register-submit:active {
transform: scale(0.99);
}

.form-status {
grid-column: 1 / -1;
margin: 0;
padding: 13px 15px;
border: 1px solid #B9DCD1;
border-radius: 6px;
color: #155E53;
background: #EAF5EF;
font-size: 0.83rem;
line-height: 1.7;
}

/* ==============================
PAGE FOOTER
============================== */

.register-footer {
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
padding-top: 23px;
}

.register-footer p {
margin: 0;
color: var(--muted);
font-size: 0.85rem;
line-height: 1.7;
}

.register-footer p a {
margin-left: 4px;
}

.register-footer > span {
color: #89938F;
font-size: 0.78rem;
line-height: 1.7;
}

/* ==============================
RESPONSIVE
============================== */

@media (min-width: 1500px) {
.register-page {
width: min(100% - 160px, 1320px);
}
}

@media (max-width: 900px) {
.register-page {
width: calc(100% - 64px);
padding-top: 40px;
}


.register-header {
    grid-template-columns: 145px minmax(0, 1fr);
    gap: 35px;
    padding-bottom: 38px;
}

.register-logo img {
    width: 140px;
}

.register-intro h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
}

.form-bottom {
    grid-template-columns: 1fr;
    gap: 20px;
}

.register-submit {
    max-width: 420px;
}


}

@media (max-width: 600px) {
.register-page {
width: calc(100% - 40px);
padding-top: 28px;
padding-bottom: 26px;
}


.register-header {
    grid-template-columns: 1fr;
    gap: 27px;
    padding: 0 0 30px;
}

.register-logo img {
    width: 125px;
}

.register-intro h1 {
    font-size: 2.45rem;
}

.register-intro p {
    font-size: 0.91rem;
}

.register-section {
    padding-top: 31px;
}

.section-heading {
    margin-bottom: 25px;
}

.section-heading h2 {
    font-size: 2rem;
}

.form-grid {
    grid-template-columns: 1fr;
    row-gap: 20px;
}

.form-bottom {
    margin-top: 26px;
    padding-bottom: 27px;
}

.register-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    padding-top: 20px;
}


}

@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
scroll-behavior: auto !important;
transition-duration: 0.01ms !important;
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
}
}
