:root {
  --navy: #0d447a;
  --navy-deep: #0a3a6d;
  --sky: #00b1ff;
  --green: #32cd8c;
  --pale: #eef7ff;
  --pale-2: #e7f4ff;
  --ink: #164f7f;
  --muted: #6f8ca8;
  --white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font-family: "Quicksand", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
img { max-width: 100%; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header { position: relative; z-index: 99; height: 173px; background: #fff; }
.top-header-bg { height: 65px; background: var(--pale); display: flex; align-items: center; }
.header-top { width: min(1180px, calc(100% - 40px)); height: 65px; margin: 0 auto; padding: 0 10px; display: flex; align-items: center; justify-content: space-between; overflow: visible; }
.logo-brand { position: relative; z-index: 2; display: block; flex: 0 0 228px; width: 228px; margin: 0 50px -30px 0; align-self: flex-start; }
.logo-brand img { width: 100%; height: auto; }
.top-menu { min-width: 0; flex: 1; display: flex; align-items: center; justify-content: space-between; }
.contact-links, .quick-actions, .nav-links, .audience-actions { display: flex; align-items: center; }
.contact-links { gap: 20px; }
.contact-links a { display: flex; align-items: center; gap: 8px; color: var(--navy); font-size: 14px; line-height: 21px; font-weight: 500; white-space: nowrap; }
.contact-links img { width: 18px; height: 18px; object-fit: contain; }
.quick-actions { gap: 20px; }
.top-action { display: inline-block; color: white; font-size: 16px; line-height: 24px; font-weight: 500; padding: 6px 20px; border-radius: 30px; white-space: nowrap; }
.top-action.coral { background: #ff6363; }
.top-action.orange { background: #ffa439; }
.main-header-bg { height: 108px; padding: 28px 20px; background: #fff; }
.main-nav { width: min(1180px, calc(100% - 40px)); height: 52px; margin: 0 auto; }
.nav-inner { width: 100%; min-width: 0; height: 52px; display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.nav-links { gap: 20px; }
.nav-links a { color: var(--navy); font-size: 16px; line-height: 24px; font-weight: 500; white-space: nowrap; }
.audience-actions { gap: 10px; }
.audience-pill { display: inline-block; color: white; font-size: 16px; line-height: 24px; font-weight: 500; padding: 14px; border-radius: 30px; white-space: nowrap; }
.audience-pill.green { background: var(--green); }
.audience-pill.sky { background: #5aa9ee; }
.audience-pill.navy { background: var(--navy); }
.nav-toggle { display: none; flex: 0 0 auto; flex-direction: column; justify-content: center; gap: 5px; width: 34px; height: 34px; margin-left: 10px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.nav-toggle span { display: block; width: 100%; height: 2px; border-radius: 2px; background: var(--navy); }
.profile-menu-wrap { position: relative; }
.profile-toggle { display: inline-block; color: white; background: var(--navy); font-size: 16px; line-height: 24px; font-weight: 500; padding: 14px; border: 0; border-radius: 30px; white-space: nowrap; cursor: pointer; }
.profile-menu { display: none; position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px; background: white; border-radius: 12px; padding: 8px; box-shadow: 0 12px 24px rgba(13,68,122,.16); z-index: 100; }
.profile-menu.is-open { display: block; }
.profile-menu a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--navy); font-size: 14px; font-weight: 500; }
.profile-menu a:hover { background: var(--pale); }

.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 565px; }
.hero-copy { background: var(--navy); color: white; display: flex; flex-direction: column; justify-content: center; padding: 68px max(6vw, 42px) 62px calc((100vw - 1180px)/2 + 36px); }
.hero-eyebrow { font-size: 12px !important; letter-spacing: .16em; font-weight: 700 !important; color: #9addff; margin-bottom: 16px !important; }
.hero h1 { font-size: clamp(42px, 4vw, 67px); line-height: 1.05; font-weight: 500; margin: 0 0 18px; }
.hero-copy > p { font-size: 18px; line-height: 1.65; font-weight: 600; max-width: 570px; margin: 0 0 24px; }
.hero-image { min-height: 565px; background: url("../images/reva-hero-branded.png") center center/cover no-repeat; }
.hero-choice { display: flex; gap: 10px; margin-bottom: 18px; }
.hero-choice a { font-size: 10px; font-weight: 700; border: 1px solid rgba(255,255,255,.7); border-radius: 20px; padding: 8px 15px; }
.hero-choice .home-link { background: white; color: var(--navy); }
.postcode-search { height: 48px; max-width: 520px; display: flex; align-items: center; border-radius: 28px; padding: 4px 4px 4px 17px; background: white; color: var(--sky); }
.postcode-search-icon { flex: 0 0 16px; width: 16px; height: 16px; }
.postcode-search input { min-width: 0; flex: 1; border: 0; outline: 0; padding: 0 10px; color: #617e99; }
.postcode-search input::placeholder { color: #a2b9cc; }
.postcode-search button { border: 0; background: var(--sky); color: white; height: 40px; border-radius: 22px; padding: 0 23px; font-size: 10px; font-weight: 700; cursor: pointer; }

.section { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 76px 0; }
.section-heading { text-align: center; margin-bottom: 28px; }
.section-heading.left { text-align: left; }
.section-heading h2 { margin: 0; font-size: 34px; line-height: 1.2; font-weight: 500; color: var(--ink); }
.section-heading span, .about h2 span { color: var(--sky); }
.audience-tabs { display: flex; width: max-content; max-width: 100%; margin: 0 auto 38px; background: var(--pale); border-radius: 28px; overflow: hidden; }
.audience-tabs button { border: 0; color: #5f7f9b; background: transparent; padding: 12px 25px; font-size: 10px; font-weight: 700; cursor: pointer; }
.audience-tabs button.active { color: white; }
.audience-tabs button.active.seeker { background: var(--sky); }
.audience-tabs button.active.home { background: var(--navy); }
.audience-tabs button.active.carer { background: var(--green); }
.audience-panel[hidden] { display: none !important; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.step { text-align: center; position: relative; }
.step:not(:last-child)::after { content: "\203A"; position: absolute; top: 48px; right: -21px; font-size: 35px; font-weight: 300; color: #74a4c7; }
.step-icon { width: 112px; height: 112px; margin: 0 auto 13px; }
.step-number { display: none; }
.step h3 { margin: 0 0 9px; color: var(--ink); font-size: 17px; font-weight: 600; }
.step p { margin: 0 auto; color: var(--muted); font-size: 12px; line-height: 1.55; max-width: 230px; }

.services { background: var(--pale); }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service-card { background: white; }
.service-card img { width: 100%; height: 215px; object-fit: cover; }
.service-card h3 { font-size: 13px; min-height: 52px; margin: 0; padding: 16px 12px; font-weight: 600; }
.dark-button { display: block; width: max-content; margin: 30px auto 0; padding: 11px 24px; background: var(--navy); color: white; border-radius: 28px; font-size: 10px; font-weight: 700; }

.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: center; }
.about-copy { padding-left: 30px; }
.kicker { color: var(--sky); font-size: 12px; font-weight: 700; letter-spacing: .08em; margin: 0 0 10px; }
.about h2 { margin: 0 0 18px; font-size: 34px; font-weight: 500; }
.about h3 { margin: 0 0 17px; font-size: 16px; }
.about p:not(.kicker) { color: var(--muted); font-size: 13px; line-height: 1.75; }
.about .dark-button { margin: 24px 0 0; }
.about-image { position: relative; min-height: 360px; display: flex; justify-content: center; align-items: flex-end; }
.about-image::before { content: ""; position: absolute; inset: 15px 8% 0; background: var(--pale); clip-path: polygon(18% 0, 82% 0, 100% 22%, 100% 100%, 0 100%, 0 22%); }
.about-image img { position: relative; max-height: 360px; object-fit: contain; }

.community { background: var(--pale); }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonial { background: white; padding: 32px; border: 1px solid #c7e3f8; min-height: 260px; display: flex; flex-direction: column; }
.testimonial.featured { border-top: 5px solid var(--navy); }
.quote { color: #b8daf3; font-family: Georgia, serif; font-size: 60px; line-height: .7; }
.testimonial p { color: #52718d; font-size: 13px; line-height: 1.7; flex: 1; }
.testimonial strong { font-size: 13px; color: var(--navy); }
.testimonial small { display: block; margin-top: 3px; color: var(--muted); }

.app-section { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 50px; }
.app-copy { padding-left: 30px; }
.app-copy .audience-tabs { margin: 0 0 25px; }
.app-text h3 { margin: 0 0 10px; font-size: 16px; }
.app-text p { max-width: 530px; margin: 0 0 26px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.store-links { display: flex; gap: 13px; }
.store-links img { height: 42px; width: auto; }
.app-image { display: flex; justify-content: center; }
.app-image img { max-height: 420px; }

.cta-band { width: min(1180px, calc(100% - 40px)); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); color: white; }
.cta-card { padding: 28px 30px 30px; min-height: 180px; }
.carer-cta { background: #10b455; }
.home-cta { background: var(--navy); }
.seeker-cta { background: #6f94b5; }
.cta-card h2 { margin: 0 0 8px; font-size: 27px; font-weight: 500; }
.cta-card p { min-height: 42px; margin: 0 0 18px; font-size: 12px; line-height: 1.55; }
.cta-card a { display: inline-block; padding: 9px 16px; border: 1px solid white; border-radius: 22px; font-size: 9px; font-weight: 700; }

.site-footer { background: var(--navy); color: white; padding: 55px 0 0; margin-top: -1px; }
.footer-inner { width: min(1180px, calc(100% - 40px)); margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr .8fr .8fr; gap: 60px; padding-bottom: 40px; }
.footer-brand img { width: 92px; margin-bottom: 18px; }
.site-footer h3 { margin: 0 0 16px; font-size: 14px; }
.site-footer p, .site-footer a { display: block; color: #c6daeb; font-size: 11px; line-height: 1.7; margin: 0 0 7px; }
.copyright { border-top: 1px solid rgba(255,255,255,.12); width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 18px 0; font-size: 10px; color: #b9d2e7; }

/* Care-home registration and login */
.auth-page { min-height: calc(100vh - 173px); display: grid; grid-template-columns: 35.5% 64.5%; background: white; }
.auth-intro { background: var(--navy); color: white; min-height: 830px; padding: 48px clamp(44px, 7vw, 138px); display: flex; flex-direction: column; }
.auth-intro-copy { margin: auto 0; max-width: 450px; }
.auth-intro h1 { margin: 0 0 22px; font-size: clamp(40px, 3.3vw, 66px); line-height: 1.28; font-weight: 700; letter-spacing: -.02em; }
.auth-intro p { margin: 0; font-size: 18px; line-height: 1.7; font-weight: 500; }
.auth-panel { padding: 42px clamp(50px, 7.5vw, 145px) 28px; position: relative; }
.auth-top { display: flex; justify-content: flex-end; gap: 14px; margin-bottom: 28px; }
.auth-top a { min-width: 142px; text-align: center; padding: 13px 18px; border-radius: 25px; color: white; font-size: 11px; font-weight: 700; }
.auth-top .carer-switch { background: var(--green); }
.auth-top .login-switch { background: var(--sky); }
.auth-heading { text-align: center; margin-bottom: 28px; }
.auth-heading h2 { margin: 0 0 7px; color: var(--navy); font-size: 31px; font-weight: 600; }
.auth-heading p { margin: 0; color: var(--navy); font-size: 15px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 16px; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; margin: 0 0 8px; color: var(--ink); font-size: 14px; font-weight: 500; }
.field label span { color: #ff7b7b; }
.field input, .field select { width: 100%; height: 55px; border: 0; outline: 0; border-radius: 30px; background: var(--pale); color: #6484a4; padding: 0 20px; }
.field input::placeholder { color: #86a1ba; }
.terms-row { display: flex; align-items: center; gap: 8px; grid-column: 1 / -1; color: #345f83; font-size: 13px; }
.terms-row a { font-weight: 700; }
.terms-row input { width: 16px; height: 16px; accent-color: var(--sky); }
.primary-submit { grid-column: 1 / -1; height: 55px; border: 0; border-radius: 30px; background: var(--sky); color: white; font-weight: 600; cursor: pointer; }
.auth-footnote { text-align: center; margin: 18px 0 0; color: #557893; font-size: 13px; }
.auth-footnote a { color: var(--sky); font-weight: 700; }
.login-form { max-width: 700px; margin: 70px auto 0; }
.auth-login-page .auth-intro, .auth-login-page .auth-panel { min-height: 660px; }
.login-form .form-grid { grid-template-columns: 1fr; }
.login-form .field.full, .login-form .primary-submit, .login-form .terms-row { grid-column: 1; }
.login-options { display: flex; justify-content: space-between; align-items: center; }
.login-options a { font-size: 13px; color: var(--sky); font-weight: 700; }

@media (max-width: 1100px) {
  .header-top, .main-nav { width: calc(100% - 24px); }
  .logo-brand { flex-basis: 190px; width: 190px; margin-right: 24px; }
  .contact-links { gap: 12px; }
  .contact-links a { font-size: 13px; }
  .quick-actions { gap: 10px; }
  .top-action { font-size: 14px; padding-inline: 14px; }
  .nav-links { gap: 13px; }
  .nav-links a { font-size: 13px; }
  .audience-actions { gap: 7px; }
  .audience-pill { font-size: 13px; padding-inline: 11px; }
  .hero-copy { padding-left: 45px; }
  .auth-page { grid-template-columns: 34% 66%; }
  .auth-intro { padding: 40px; }
  .auth-panel { padding-inline: 48px; }
}

@media (max-width: 820px) {
  .site-header { height: 136px; }
  .top-header-bg, .header-top { height: 76px; }
  .header-top { width: calc(100% - 20px); padding: 0; }
  .logo-brand { flex-basis: 150px; width: 150px; margin: 0 16px 0 0; align-self: center; }
  .contact-links { display: none; }
  .top-menu { justify-content: flex-end; }
  .nav-toggle { display: flex; }
  .main-header-bg { height: 60px; padding: 8px 10px; }
  .main-nav { position: relative; width: 100%; height: 44px; }
  .nav-inner { width: 100%; height: 44px; }
  .nav-links { display: none; flex-direction: column; align-items: stretch; gap: 0; position: absolute; left: 0; right: 0; top: 100%; margin-top: 8px; background: white; padding: 8px 16px; border-radius: 12px; box-shadow: 0 12px 24px rgba(13,68,122,.16); z-index: 100; }
  .nav-links a { padding: 10px 0; border-bottom: 1px solid var(--pale); }
  .nav-links a:last-child { border-bottom: 0; }
  .main-nav.is-open .nav-links { display: flex; }
  .audience-actions { margin-left: auto; }
  .audience-pill { font-size: 11px; line-height: 18px; padding: 10px 11px; }
  .profile-toggle { font-size: 11px; line-height: 18px; padding: 10px 11px; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 70px 30px; }
  .hero-image { min-height: 420px; }
  .steps, .service-grid { grid-template-columns: repeat(2, 1fr); }
  .step:not(:last-child)::after { display: none; }
  .about, .app-section { grid-template-columns: 1fr; }
  .about-copy, .app-copy { padding-left: 0; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
  .auth-page { min-height: 0; grid-template-columns: 1fr; }
  .auth-intro { min-height: auto; padding: 32px; }
  .auth-intro-copy { margin: 60px 0 20px; }
  .auth-intro h1 { font-size: 42px; }
  .auth-panel { padding: 30px 24px 50px; }
  .login-form { margin-top: 20px; }
}

@media (max-width: 560px) {
  .site-header { height: 128px; }
  .top-header-bg, .header-top { height: 70px; }
  .logo-brand { flex-basis: 126px; width: 126px; margin-right: 8px; }
  .top-action { font-size: 10px; line-height: 18px; padding: 7px 9px; }
  .audience-actions { gap: 5px; justify-content: flex-end; }
  .audience-pill { font-size: 9px; padding: 9px 7px; }
  .quick-actions { gap: 6px; }
  .hero-image { min-height: 330px; }
  .hero h1 { font-size: 43px; }
  .postcode-search button { padding: 0 14px; }
  .audience-tabs { width: 100%; }
  .audience-tabs button { flex: 1; padding: 11px 8px; font-size: 8px; }
  .steps, .service-grid, .form-grid { grid-template-columns: 1fr; }
  .field.full, .terms-row, .primary-submit { grid-column: 1; }
  .footer-inner { grid-template-columns: 1fr; }
  .auth-top { justify-content: center; }
  .auth-top a { min-width: 0; flex: 1; }
}

/* Care Home registration, matched to the production Care Seeker journey */
body.modal-open { overflow: hidden; }
.registration-page { min-height: 100vh; display: grid; grid-template-columns: 38.8% 61.2%; background: white; }
.registration-intro { position: relative; min-height: 100vh; overflow: hidden; background: #284d80; color: white; padding: 88px clamp(44px, 6vw, 118px); display: flex; flex-direction: column; }
.registration-logo { width: 112px; margin: 0 auto; }
.registration-logo img { width: 100%; height: auto; }
.registration-intro-copy { width: min(100%, 420px); margin: auto; padding: 70px 0 90px; }
.registration-intro-copy h1 { margin: 0 0 22px; font-size: clamp(42px, 3vw, 62px); line-height: 1.28; letter-spacing: -.02em; font-weight: 700; }
.registration-intro-copy p { margin: 0; max-width: 400px; font-size: 18px; line-height: 1.65; font-weight: 500; }
.registration-panel { position: relative; min-height: 100vh; padding: 36px clamp(44px, 7vw, 132px) 38px; }
.registration-top-actions { display: flex; justify-content: flex-end; align-items: center; gap: 14px; margin-bottom: 38px; }
.registration-top-actions a, .registration-top-actions button { min-width: 126px; border: 0; border-radius: 24px; padding: 12px 18px; color: white; text-align: center; font-size: 10px; line-height: 1; font-weight: 700; cursor: pointer; }
.switch-carer { background: #6bcc91; }
.open-login { background: #5aa9ee; }
.registration-form-wrap { width: min(100%, 650px); margin: 0 auto; }
.registration-heading { text-align: center; margin-bottom: 26px; }
.registration-heading h2 { margin: 0 0 8px; color: #183f78; font-size: 30px; line-height: 1.2; font-weight: 600; }
.registration-heading p { margin: 0; color: #244d80; font-size: 16px; }
.carehome-form { display: flex; flex-direction: column; gap: 20px; }
.user-type-fieldset { margin: 0; padding: 0; border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.user-type-fieldset legend { grid-column: 1 / -1; margin: 0 0 -7px; color: #1b477e; font-size: 18px; font-weight: 500; }
.user-type-fieldset legend span, .registration-field label span, .modal-field label span { color: #ff7777; }
.radio-card { height: 43px; display: flex; align-items: center; gap: 8px; padding: 0 16px; border-radius: 25px; background: #edf6ff; color: #315b82; font-size: 16px; cursor: pointer; }
.radio-card input { appearance: none; -webkit-appearance: none; width: 16px; height: 16px; margin: 0; flex-shrink: 0; border-radius: 50%; border: 1px solid #bad2e8; background-color: #fff; cursor: pointer; }
.radio-card input:checked { border-color: #00B1FF; background-color: #fff; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%2300B1FF'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: center; background-size: 22px; }
.registration-fields { display: grid; gap: 13px; }
.registration-fields.three-columns { grid-template-columns: repeat(3, 1fr); }
.registration-fields.two-columns { grid-template-columns: repeat(2, 1fr); }
.registration-field { min-width: 0; }
.registration-field.full-width { width: 100%; }
.registration-field label, .modal-field label { display: block; margin: 0 0 8px; color: #1b477e; font-size: 18px; font-weight: 500; }
.registration-field > input, .registration-field > select, .password-field, .phone-input, .modal-field > input { width: 100%; height: 45px; border: 0; border-radius: 25px; background: #edf6ff; color: #4d6f8d; }
.registration-field > input, .registration-field > select, .modal-field > input { outline: 0; padding: 0 16px; }
.registration-field input::placeholder, .modal-field input::placeholder { color: #8198ad; }
.password-field, .phone-input { display: flex; align-items: center; overflow: hidden; }
.password-field input, .phone-input input { min-width: 0; flex: 1; height: 100%; border: 0; outline: 0; background: transparent; color: #4d6f8d; padding: 0 16px; }
.phone-input > span { padding: 0 13px 0 16px; border-right: 1px solid #c6dced; color: #4f6e8a; font-size: 12px; }
.password-field button { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; color: #7695af; cursor: pointer; }
.password-field svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.registration-terms { display: flex; align-items: center; gap: 7px; color: #315777; font-size: 11px; }
.registration-terms input { width: 14px; height: 14px; margin: 0; accent-color: #43baff; }
.registration-terms a { color: #1d507d; font-weight: 700; }
.form-error { margin: -10px 0 0; color: #d64e4e; font-size: 12px; }
.registration-submit { width: 100%; height: 46px; border: 0; border-radius: 25px; background: #5aa9ee; color: white; font-size: 12px; font-weight: 600; cursor: pointer; }
.registration-social, .modal-social { display: flex; flex-direction: column; align-items: center; gap: 18px; color: #6c83a3; font-size: 12px; }
.google-button { min-width: 154px; height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; border: 1px solid #bfd5eb; border-radius: 24px; background: white; color: #111; font-size: 13px; cursor: pointer; }
.google-button svg { width: 25px; height: 25px; }
.login-overlay { position: fixed; inset: 0; z-index: 1000; display: none; place-items: center; padding: 30px; overflow-y: auto; background: rgba(35, 58, 145, .82); }
.login-overlay.is-open { display: grid; }
.login-modal { position: relative; width: min(100%, 750px); min-height: 720px; border-radius: 26px; background: white; padding: 105px 44px 50px; color: #244a80; box-shadow: 0 20px 60px rgba(7, 35, 80, .2); }
.modal-close { position: absolute; top: 0; right: 0; width: 60px; height: 60px; border: 0; border-radius: 0 26px 0 24px; background: #e7e7e7; color: #777; font-size: 34px; font-weight: 300; line-height: 1; cursor: pointer; }
.login-modal > header { text-align: center; margin-bottom: 42px; }
.login-modal h2 { margin: 0 0 10px; color: #294d80; font-size: 43px; line-height: 1.2; font-weight: 500; }
.login-modal header p { margin: 0; color: #294d80; font-size: 22px; }
.login-modal form { width: min(100%, 656px); margin: 0 auto; }
.modal-field { margin-bottom: 28px; }
.modal-field label { font-size: 20px; margin-bottom: 12px; }
.modal-field > input, .modal-field .password-field { height: 80px; border-radius: 42px; }
.modal-field > input, .modal-field .password-field input { padding-inline: 30px; font-size: 20px; }
.modal-field .password-field button { width: 62px; height: 62px; flex-basis: 62px; margin-right: 8px; }
.modal-field .password-field svg { width: 24px; height: 24px; }
.forgot-password { display: block; margin: -4px 0 38px auto; border: 0; background: transparent; color: #59aaff; font-size: 19px; cursor: pointer; }
.modal-login-button { width: 100%; height: 78px; border: 0; border-radius: 40px; background: #5aa9ee; color: white; font-size: 20px; font-weight: 500; cursor: pointer; }
.modal-social { margin-top: 45px; gap: 20px; font-size: 18px; }
.modal-social .google-button { min-width: 285px; height: 82px; border-radius: 42px; font-size: 23px; }
.modal-social .google-button svg { width: 34px; height: 34px; }
.modal-signup { margin: 48px 0 0; text-align: center; color: #6c83a3; font-size: 19px; font-weight: 600; }
.modal-signup button { border: 0; padding: 0; background: transparent; color: #58aaff; font: inherit; cursor: pointer; }
.verification-modal { width: min(100%, 520px); border-radius: 26px; background: white; padding: 54px 42px; text-align: center; color: #244a80; }
.verification-icon { width: 78px; height: 78px; margin: 0 auto 24px; display: grid; place-items: center; border: 2px solid #19bcea; border-radius: 50%; color: #19bcea; font-size: 36px; }
.verification-modal h2 { margin: 0 0 12px; font-size: 30px; }
.verification-modal p { margin: 0 0 26px; color: #5d7894; line-height: 1.6; }
.verification-modal button { border: 0; border-radius: 24px; padding: 14px 24px; background: #5aa9ee; color: white; font-weight: 600; cursor: pointer; }
.form-alert { margin: 0 0 18px; padding: 13px 16px; border: 1px solid #f0b2b2; border-radius: 12px; background: #fff4f4; color: #a83c3c; font-size: 12px; line-height: 1.5; }
.form-alert ul { margin: 6px 0 0; padding-left: 18px; }
.forgot-modal { position: relative; width: min(100%, 620px); border-radius: 26px; background: white; padding: 90px 44px 50px; color: #244a80; box-shadow: 0 20px 60px rgba(7, 35, 80, .2); }
.forgot-modal > header { text-align: center; margin-bottom: 42px; }
.forgot-modal h2 { margin: 0 0 10px; color: #294d80; font-size: 38px; line-height: 1.2; font-weight: 500; }
.forgot-modal header p { margin: 0; color: #294d80; font-size: 18px; }
.forgot-modal form { width: min(100%, 520px); margin: 0 auto; }
.google-button { text-decoration: none; }
.google-button:hover { color: #111; }
.password-field.is-visible svg { color: #2b7bb5; }

@media (max-width: 1050px) {
  .registration-page { grid-template-columns: 36% 64%; }
  .registration-intro { padding-inline: 45px; }
  .registration-panel { padding-inline: 45px; }
  .login-modal { min-height: 0; padding-top: 80px; }
}

@media (max-width: 800px) {
  .registration-page { grid-template-columns: 1fr; }
  .registration-intro { min-height: auto; padding: 35px 28px 45px; }
  .registration-logo { width: 98px; }
  .registration-intro-copy { padding: 42px 0 0; text-align: center; }
  .registration-intro-copy h1 { font-size: 38px; }
  .registration-intro-copy p { margin-inline: auto; font-size: 16px; }
  .registration-panel { min-height: auto; padding: 25px 24px 48px; }
  .registration-top-actions { margin-bottom: 32px; }
  .login-overlay { padding: 18px; }
  .login-modal { padding: 78px 28px 38px; }
  .forgot-modal { padding: 78px 28px 38px; }
  .login-modal h2 { font-size: 34px; }
  .login-modal header p { font-size: 17px; }
  .modal-field > input, .modal-field .password-field { height: 62px; }
  .modal-field > input, .modal-field .password-field input { font-size: 17px; }
  .modal-login-button { height: 62px; }
  .modal-social .google-button { min-width: 235px; height: 62px; font-size: 19px; }
}

@media (max-width: 560px) {
  .registration-top-actions a, .registration-top-actions button { min-width: 0; flex: 1; padding-inline: 10px; }
  .registration-heading h2 { font-size: 24px; }
  .registration-fields.three-columns, .registration-fields.two-columns { grid-template-columns: 1fr; }
  .user-type-fieldset { gap: 8px; }
  .radio-card { padding-inline: 11px; }
  .login-modal { padding: 72px 20px 32px; }
  .forgot-modal { padding: 72px 20px 32px; }
  .login-modal h2 { font-size: 29px; }
  .login-modal header p { font-size: 15px; }
  .modal-field label { font-size: 16px; }
  .modal-field > input, .modal-field .password-field { height: 56px; }
  .modal-field > input, .modal-field .password-field input { padding-inline: 20px; font-size: 16px; }
  .forgot-password, .modal-signup { font-size: 15px; }
  .modal-login-button { height: 56px; }
  .modal-social { margin-top: 34px; font-size: 14px; }
  .modal-social .google-button { min-width: 210px; height: 54px; font-size: 17px; }
}
