/* =========================================================
   لقاء سعودي — Signup
   Same navy, Saudi green, gold and sand identity as homepage
========================================================= */

:root {
    --navy-950: #071d28;
    --navy-900: #0b2d3c;
    --navy-800: #123e4f;
    --green-700: #075f3b;
    --green-600: #0b7448;
    --green-500: #118657;
    --gold-600: #b88935;
    --gold-500: #cda654;
    --gold-300: #ead49e;
    --sand-100: #f7f2e8;
    --sand-50: #fcfaf5;
    --white: #ffffff;
    --ink: #142b35;
    --muted: #68777d;
    --line: #e3e9e6;
    --danger: #d94c57;
    --success: #168553;
    --shadow-lg: 0 32px 90px rgba(3, 20, 29, 0.3);
    --shadow-md: 0 20px 52px rgba(7, 29, 40, 0.14);
    --shadow-sm: 0 10px 28px rgba(11, 45, 60, 0.08);
    --radius-sm: 14px;
    --radius-md: 24px;
    --radius-lg: 36px;
    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    position: relative;
    min-height: 100vh;
    padding: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    direction: rtl;
    background:
        radial-gradient(circle at 85% 10%, rgba(205, 166, 84, 0.18), transparent 24%),
        radial-gradient(circle at 8% 88%, rgba(17, 134, 87, 0.15), transparent 24%),
        linear-gradient(145deg, var(--navy-950), var(--navy-900) 56%, #0d453b);
    color: var(--ink);
    font-family: "Cairo", sans-serif;
    line-height: 1.7;
}

body,
button,
input,
select,
textarea {
    font-family: "Cairo", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    border: 0;
    cursor: pointer;
}

input,
select,
textarea {
    color: var(--ink);
}

::selection {
    background: var(--gold-300);
    color: var(--navy-950);
}

:focus-visible {
    outline: 3px solid rgba(205, 166, 84, 0.5);
    outline-offset: 3px;
}

.page-decoration {
    position: fixed;
    z-index: 0;
    pointer-events: none;
}

.decoration-one {
    top: -170px;
    left: -150px;
    width: 430px;
    height: 430px;
    border: 1px solid rgba(234, 212, 158, 0.12);
    border-radius: 50%;
    box-shadow:
        0 0 0 46px rgba(234, 212, 158, 0.025),
        0 0 0 92px rgba(234, 212, 158, 0.02);
}

.decoration-two {
    right: -80px;
    bottom: -100px;
    width: 310px;
    height: 310px;
    border-radius: 36% 64% 56% 44%;
    background: repeating-linear-gradient(
        45deg,
        transparent 0 12px,
        rgba(234, 212, 158, 0.055) 12px 14px
    );
    transform: rotate(24deg);
}

/* =========================================================
   Main Layout
========================================================= */

.signup-container {
    position: relative;
    z-index: 2;
    width: min(1120px, 100%);
    min-height: 710px;
    display: grid;
    grid-template-columns: minmax(345px, 0.78fr) minmax(500px, 1.12fr);
    overflow: hidden;
    border: 1px solid rgba(234, 212, 158, 0.16);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-lg);
}

.signup-aside {
    position: relative;
    min-height: 100%;
    padding: 45px 42px 38px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background:
        radial-gradient(circle at 0 0, rgba(205, 166, 84, 0.2), transparent 28%),
        linear-gradient(160deg, var(--green-700), var(--navy-950) 75%);
    color: var(--white);
}

.signup-aside::before {
    content: "";
    position: absolute;
    top: 120px;
    right: -165px;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(234, 212, 158, 0.1);
    border-radius: 50%;
    box-shadow:
        0 0 0 40px rgba(234, 212, 158, 0.025),
        0 0 0 80px rgba(234, 212, 158, 0.02);
}

.signup-aside::after {
    content: "";
    position: absolute;
    left: -55px;
    bottom: 52px;
    width: 175px;
    height: 175px;
    border: 1px dashed rgba(234, 212, 158, 0.14);
    border-radius: 45% 55% 50% 50%;
    transform: rotate(32deg);
}

.aside-brand,
.brand {
    position: relative;
    z-index: 2;
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-size: 23px;
    font-weight: 800;
    white-space: nowrap;
}

.aside-brand {
    color: var(--white);
}

.aside-brand strong {
    color: var(--gold-300);
}

.brand {
    display: none;
    margin: 0 auto 18px;
    color: var(--navy-900);
}

.brand strong {
    color: var(--green-600);
}

.brand-mark {
    position: relative;
    width: 43px;
    height: 43px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    overflow: hidden;
    border: 1px solid rgba(234, 212, 158, 0.35);
    border-radius: 15px 15px 15px 5px;
    background: rgba(255, 255, 255, 0.09);
    color: var(--gold-300);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
    transform: rotate(3deg);
}

.brand .brand-mark {
    background: linear-gradient(145deg, var(--navy-900), var(--green-700));
}

.brand-mark .fa-heart {
    font-size: 19px;
}

.brand-mark .fa-palm-tree {
    position: absolute;
    right: 6px;
    bottom: 4px;
    color: var(--white);
    font-size: 9px;
}

.aside-content {
    position: relative;
    z-index: 2;
    margin: auto 0;
    padding: 48px 0;
}

.aside-kicker {
    margin-bottom: 17px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--gold-300);
    font-size: 12px;
    font-weight: 800;
}

.aside-kicker > span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold-300);
    box-shadow: 0 0 0 5px rgba(234, 212, 158, 0.11);
}

.aside-content h2 {
    margin-bottom: 16px;
    color: var(--white);
    font-size: clamp(27px, 3vw, 37px);
    font-weight: 800;
    line-height: 1.45;
    letter-spacing: -0.025em;
}

.aside-content > p {
    color: rgba(255, 255, 255, 0.64);
    font-size: 13px;
    line-height: 1.95;
}

.aside-benefits {
    margin-top: 34px;
    display: grid;
    gap: 15px;
    list-style: none;
}

.aside-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.aside-benefits li > i {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(234, 212, 158, 0.18);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.075);
    color: var(--gold-300);
    font-size: 14px;
}

.aside-benefits strong,
.aside-benefits small {
    display: block;
}

.aside-benefits strong {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
}

.aside-benefits small {
    margin-top: 1px;
    color: rgba(255, 255, 255, 0.46);
    font-size: 10px;
}

.aside-trust {
    position: relative;
    z-index: 2;
    padding-top: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
}

.aside-trust i {
    color: var(--gold-300);
}

/* =========================================================
   Signup Card Header
========================================================= */

.signup-card {
    min-width: 0;
    padding: 34px 55px 38px;
    background:
        radial-gradient(circle at 100% 0, rgba(205, 166, 84, 0.08), transparent 24%),
        var(--white);
}

.card-topbar {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.back-home,
.secure-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.back-home {
    transition: color var(--transition);
}

.back-home:hover {
    color: var(--green-700);
}

.secure-label {
    padding: 7px 11px;
    border: 1px solid #e5eee8;
    border-radius: 999px;
    background: #f3f9f5;
    color: var(--green-700);
}

.signup-card h1 {
    color: var(--navy-950);
    font-size: clamp(28px, 3.1vw, 38px);
    font-weight: 800;
    line-height: 1.4;
    text-align: right;
    letter-spacing: -0.025em;
}

.subtitle {
    margin: 7px 0 25px;
    color: var(--muted);
    font-size: 13px;
    text-align: right;
}

/* =========================================================
   Progress
========================================================= */

.progress-meta {
    margin-bottom: 9px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #7b898e;
    font-size: 10px;
    font-weight: 700;
}

#progressTitle {
    color: var(--green-700);
    font-size: 11px;
    font-weight: 800;
}

.progress-meta strong {
    color: var(--gold-600);
}

.progress {
    position: relative;
    width: 100%;
    height: 7px;
    margin-bottom: 27px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf0ee;
}

.progress-bar {
    width: 33.333%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--green-600), var(--gold-500));
    box-shadow: 0 0 13px rgba(205, 166, 84, 0.32);
    transition: width 0.42s ease;
}

/* =========================================================
   Form
========================================================= */

.step {
    display: none;
}

.step.active {
    display: block;
    animation: stepEnter 0.38s ease both;
}

.field-group {
    margin-bottom: 16px;
}

.field-group > label,
.change-phone-label {
    margin-bottom: 7px;
    display: block;
    color: #334a53;
    font-size: 12px;
    font-weight: 800;
}

.optional {
    color: #93a0a5;
    font-size: 10px;
    font-weight: 600;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fbfcfb;
    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}

.input-wrap:focus-within {
    border-color: var(--green-500);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(17, 134, 87, 0.09);
}

.input-wrap > i {
    width: 45px;
    flex: 0 0 auto;
    color: #93a19e;
    font-size: 13px;
    text-align: center;
    transition: color var(--transition);
}

.input-wrap:focus-within > i {
    color: var(--green-600);
}

.input-wrap input,
.input-wrap select,
.input-wrap textarea {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 12px 0 12px 14px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-size: 13px;
}

.input-wrap input,
.input-wrap select {
    min-height: 49px;
}

.input-wrap input::placeholder,
.input-wrap textarea::placeholder {
    color: #a2adb0;
}

.select-wrap select {
    cursor: pointer;
}

.textarea-wrap {
    align-items: flex-start;
}

.textarea-wrap > i {
    padding-top: 16px;
}

.textarea-wrap textarea {
    height: 82px;
    resize: vertical;
    line-height: 1.75;
}

.phone-box {
    display: flex;
    align-items: stretch;
    overflow: hidden;
    direction: ltr;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fbfcfb;
    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}

.phone-box:focus-within {
    border-color: var(--green-500);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(17, 134, 87, 0.09);
}

.phone-box > span {
    min-width: 106px;
    padding: 0 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--line);
    background: var(--sand-50);
    color: var(--green-700);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.phone-box input {
    width: 100%;
    min-width: 0;
    min-height: 49px;
    padding: 12px 14px;
    border: 0;
    outline: 0;
    direction: ltr;
    background: transparent;
    font-size: 13px;
    text-align: left;
}

.field-hint {
    margin-top: 6px;
    display: block;
    color: #93a0a5;
    font-size: 9px;
}

.error {
    min-height: 0;
    margin-top: 6px;
    display: none;
    color: var(--danger);
    font-size: 10px;
    font-weight: 700;
}

.error.show {
    display: block;
}

.input-error {
    border-radius: 10px;
    box-shadow: 0 0 0 1px var(--danger) !important;
}

.input-success {
    border-radius: 10px;
    box-shadow: 0 0 0 1px var(--success) !important;
}

.terms {
    margin: 2px 0 7px;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: #5d6f76;
    font-size: 10px;
    line-height: 1.75;
    cursor: pointer;
}

.terms input {
    width: 17px;
    height: 17px;
    margin-top: 1px;
    flex: 0 0 auto;
    accent-color: var(--green-600);
}

.terms a {
    color: var(--green-700);
    font-weight: 800;
}

.buttons {
    margin-top: 23px;
    display: flex;
    gap: 11px;
}

.next-btn,
.submit-btn,
.back-btn,
.verify-btn,
.save-phone-btn,
.cancel-phone-btn,
.resend-btn {
    min-height: 49px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        background var(--transition),
        color var(--transition),
        border-color var(--transition);
}

.next-btn,
.submit-btn {
    width: 100%;
    padding: 11px 22px;
    background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
    color: var(--white);
    box-shadow: 0 12px 26px rgba(11, 45, 60, 0.18);
}

.next-btn:hover,
.submit-btn:hover,
.verify-btn:hover,
.save-phone-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(11, 45, 60, 0.23);
}

.next-btn i,
.submit-btn i,
.save-phone-btn i {
    transition: transform var(--transition);
}

.next-btn:hover i,
.submit-btn:hover i,
.save-phone-btn:hover i {
    transform: translateX(-4px);
}

.buttons .next-btn,
.buttons .submit-btn {
    flex: 1;
}

.back-btn {
    width: 112px;
    flex: 0 0 auto;
    border: 1px solid var(--line);
    background: #f4f6f5;
    color: #5c6e74;
}

.back-btn:hover,
.cancel-phone-btn:hover {
    border-color: rgba(184, 137, 53, 0.38);
    background: var(--sand-50);
    color: var(--navy-900);
}

.login-prompt {
    margin-top: 24px;
    color: #849196;
    font-size: 10px;
    text-align: center;
}

.login-prompt a {
    color: var(--green-700);
    font-weight: 800;
}

/* =========================================================
   OTP Modal
========================================================= */

.otp-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    padding: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    background: rgba(3, 20, 29, 0.72);
    backdrop-filter: blur(8px);
}

.otp-overlay.active {
    display: flex;
}

.otp-card {
    position: relative;
    width: min(440px, 100%);
    padding: 36px 38px 32px;
    overflow: hidden;
    border: 1px solid rgba(205, 166, 84, 0.22);
    border-radius: 29px;
    background:
        radial-gradient(circle at 100% 0, rgba(205, 166, 84, 0.1), transparent 28%),
        var(--white);
    box-shadow: var(--shadow-lg);
    text-align: center;
    animation: popup 0.32s ease both;
}

.otp-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--green-600), var(--gold-500), var(--navy-900));
}

.close-otp {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 5;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #f5f7f6;
    color: #6f7e83;
    font-size: 14px;
    transition:
        transform var(--transition),
        color var(--transition),
        background var(--transition);
}

.close-otp:hover {
    background: var(--sand-100);
    color: var(--navy-900);
    transform: rotate(90deg);
}

.otp-header-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(7, 95, 59, 0.12);
    border-radius: 19px;
    background: #eef7f2;
    color: var(--green-600);
    font-size: 24px;
}

.otp-header-icon.edit-icon {
    background: var(--sand-100);
    color: var(--gold-600);
}

.otp-kicker {
    color: var(--gold-600);
    font-size: 9px;
    font-weight: 800;
}

.otp-card h2 {
    margin: 3px 0 7px;
    color: var(--navy-950);
    font-size: 24px;
    font-weight: 800;
}

.otp-card p {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.85;
}

#otpView.is-hidden {
    display: none;
}

.otp-phone-box {
    margin: 17px 0 20px;
    padding: 11px 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #e3ece6;
    border-radius: 14px;
    background: #f5faf7;
}

.otp-phone-box strong,
#displayPhone {
    margin: 0;
    display: block;
    flex: 1;
    direction: ltr;
    color: var(--navy-900);
    font-size: 14px;
    font-weight: 800;
    text-align: right;
    unicode-bidi: isolate;
}

.otp-phone-box button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    color: var(--green-700);
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
}

.otp-phone-box button:hover {
    color: var(--gold-600);
}

.otp-inputs {
    margin: 22px 0 12px;
    display: flex;
    justify-content: center;
    gap: 7px;
    direction: ltr;
}

.otp-inputs input {
    width: 48px;
    height: 56px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 13px;
    outline: 0;
    background: #fbfcfb;
    color: var(--navy-900);
    font-size: 21px;
    font-weight: 800;
    text-align: center;
    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        transform var(--transition);
}

.otp-inputs input:focus {
    border-color: var(--green-500);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(17, 134, 87, 0.09);
    transform: translateY(-2px);
}

.otp-error {
    min-height: 22px;
    margin-top: 8px;
    color: var(--danger);
    font-size: 10px !important;
    font-weight: 700;
}

.otp-error.success {
    color: var(--success);
}

.verify-btn {
    width: 100%;
    padding: 11px 20px;
    background: linear-gradient(135deg, var(--green-700), var(--green-600));
    color: var(--white);
    box-shadow: 0 12px 26px rgba(7, 95, 59, 0.18);
}

.otp-resend {
    margin-top: 22px;
    text-align: center;
}

.otp-divider {
    position: relative;
    height: 1px;
    margin: 22px 0 17px;
    background: var(--line);
}

.otp-divider span {
    position: absolute;
    top: 50%;
    right: 50%;
    padding: 0 10px;
    background: var(--white);
    color: #99a4a7;
    font-size: 8px;
    transform: translate(50%, -50%);
}

.resend-title {
    margin-bottom: 3px;
    color: #8a979b !important;
    font-size: 9px !important;
}

.otp-timer {
    margin-bottom: 12px;
    direction: ltr;
    color: var(--gold-600);
    font-size: 25px;
    font-weight: 800;
    letter-spacing: 2px;
}

.resend-btn {
    width: 100%;
    min-height: 43px;
    padding: 9px 15px;
    background: #edf0ee;
    color: #9ca6a9;
    cursor: not-allowed;
}

.resend-btn.enabled {
    border: 1px solid rgba(7, 95, 59, 0.15);
    background: #eef7f2;
    color: var(--green-700);
    cursor: pointer;
}

.resend-btn.enabled:hover {
    background: var(--green-700);
    color: var(--white);
    transform: translateY(-2px);
}

.resend-success {
    margin-top: 13px;
    padding: 10px;
    display: none;
    border: 1px solid rgba(22, 133, 83, 0.13);
    border-radius: 12px;
    background: #eff9f3;
    color: var(--success) !important;
    font-size: 9px !important;
    animation: slideDown 0.32s ease;
}

.resend-success.show {
    display: block;
}

.resend-success strong {
    margin-top: 3px;
    display: block;
    direction: ltr;
    color: var(--navy-900);
    font-size: 12px;
    unicode-bidi: isolate;
}

/* =========================================================
   Change Phone View
   Hidden by default. JavaScript adds .active after user click.
========================================================= */

.change-phone-view {
    display: none;
}

.change-phone-view.active {
    display: block;
    animation: stepEnter 0.3s ease both;
}

.phone-input-group {
    width: 100%;
    margin: 9px 0 0;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    direction: ltr;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fbfcfb;
    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

.phone-input-group:focus-within {
    border-color: var(--green-500);
    box-shadow: 0 0 0 4px rgba(17, 134, 87, 0.09);
}

.country-code {
    min-width: 110px;
    padding: 0 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--line);
    background: var(--sand-50);
    color: var(--green-700);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.phone-input-group input {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    padding: 11px 14px;
    border: 0;
    outline: 0;
    direction: ltr;
    background: transparent;
    color: var(--ink);
    font-size: 13px;
    text-align: left;
}

.change-phone-label {
    margin-top: 22px;
    text-align: right;
}

.change-buttons {
    margin-top: 17px;
    display: flex;
    gap: 9px;
}

.cancel-phone-btn {
    width: 95px;
    flex: 0 0 auto;
    border: 1px solid var(--line);
    background: #f3f5f4;
    color: #65767c;
}

.save-phone-btn {
    flex: 1;
    padding: 10px 18px;
    background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
    color: var(--white);
    box-shadow: 0 11px 24px rgba(11, 45, 60, 0.17);
}

/* =========================================================
   Legacy HTML Compatibility
   Prevents the broken two-column layout when an older
   signup.html is accidentally used with this stylesheet.
========================================================= */

.signup-container:not(:has(.signup-aside)) {
    width: min(570px, 100%);
    min-height: 0;
    display: block;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.signup-container:not(:has(.signup-aside)) .signup-card {
    width: 100%;
    min-height: 0;
    padding: 42px 48px;
    border: 1px solid rgba(205, 166, 84, 0.2);
    border-radius: 30px;
    background:
        radial-gradient(circle at 100% 0, rgba(205, 166, 84, 0.09), transparent 24%),
        var(--white);
    box-shadow: var(--shadow-lg);
}

.signup-container:not(:has(.signup-aside)) .brand {
    margin: 0 auto 12px;
    display: block;
    color: var(--green-700);
    font-size: 24px;
    font-weight: 800;
    text-align: center;
}

.signup-container:not(:has(.signup-aside)) .signup-card h1,
.signup-container:not(:has(.signup-aside)) .signup-card .subtitle {
    text-align: center;
}

.signup-container:not(:has(.signup-aside)) .signup-card .subtitle {
    margin-bottom: 25px;
}

.signup-container:not(:has(.signup-aside)) .step > label:not(.terms) {
    margin: 15px 0 7px;
    display: block;
    color: #334a53;
    font-size: 12px;
    font-weight: 800;
}

.signup-container:not(:has(.signup-aside)) .step > input,
.signup-container:not(:has(.signup-aside)) .step > select,
.signup-container:not(:has(.signup-aside)) .step > textarea {
    width: 100%;
    min-height: 50px;
    margin: 0 0 4px;
    padding: 12px 14px;
    display: block;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    outline: 0;
    background: #fbfcfb;
    color: var(--ink);
    font-size: 13px;
    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}

.signup-container:not(:has(.signup-aside)) .step > textarea {
    min-height: 95px;
    resize: vertical;
}

.signup-container:not(:has(.signup-aside)) .step > input:focus,
.signup-container:not(:has(.signup-aside)) .step > select:focus,
.signup-container:not(:has(.signup-aside)) .step > textarea:focus {
    border-color: var(--green-500);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(17, 134, 87, 0.09);
}

.signup-container:not(:has(.signup-aside)) .phone-box {
    margin-bottom: 4px;
}

.signup-container:not(:has(.signup-aside)) .step > .error {
    margin-bottom: 7px;
}

/* =========================================================
   Animations
========================================================= */

@keyframes stepEnter {
    from {
        opacity: 0;
        transform: translateX(22px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes popup {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   Responsive
========================================================= */

@media (max-width: 940px) {
    body {
        padding: 26px;
    }

    .signup-container {
        width: min(650px, 100%);
        grid-template-columns: 1fr;
    }

    .signup-aside {
        display: none;
    }

    .brand {
        display: inline-flex;
    }

    .signup-card {
        padding: 34px 54px 40px;
    }

    .signup-card h1,
    .subtitle {
        text-align: center;
    }
}

@media (max-width: 560px) {
    body {
        padding: 0;
        align-items: stretch;
        background: var(--white);
    }

    .page-decoration {
        display: none;
    }

    .signup-container {
        min-height: 100vh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .signup-card {
        min-height: 100vh;
        padding: 24px 20px 35px;
        background:
            radial-gradient(circle at 100% 0, rgba(205, 166, 84, 0.09), transparent 20%),
            var(--white);
    }

    .signup-container:not(:has(.signup-aside)) .signup-card {
        min-height: 100vh;
        padding: 27px 20px 35px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .card-topbar {
        margin-bottom: 21px;
    }

    .secure-label {
        padding: 6px 9px;
        font-size: 9px;
    }

    .brand {
        font-size: 20px;
    }

    .brand-mark {
        width: 39px;
        height: 39px;
    }

    .signup-card h1 {
        font-size: 27px;
    }

    .subtitle {
        margin-bottom: 22px;
        font-size: 11px;
    }

    .progress {
        margin-bottom: 24px;
    }

    .input-wrap input,
    .input-wrap select,
    .phone-box input {
        min-height: 51px;
    }

    .buttons {
        gap: 8px;
    }

    .back-btn {
        width: 92px;
    }

    .otp-overlay {
        padding: 10px;
        align-items: flex-end;
    }

    .otp-card {
        max-height: calc(100vh - 20px);
        padding: 31px 20px 24px;
        overflow-y: auto;
        border-radius: 27px 27px 18px 18px;
    }

    .otp-card h2 {
        font-size: 22px;
    }

    .otp-inputs {
        gap: 5px;
    }

    .otp-inputs input {
        width: min(44px, 13vw);
        height: 52px;
        border-radius: 11px;
        font-size: 19px;
    }

    .otp-phone-box {
        align-items: flex-start;
        flex-direction: column;
    }

    .otp-phone-box strong,
    #displayPhone {
        width: 100%;
        text-align: center;
    }

    .otp-phone-box button {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
