* { box-sizing: border-box; }

.op-auth-body {
    margin: 0;
    background: #fff;
    color: #14243a;
    font: 15px/1.5 Inter, system-ui, sans-serif;
}

.op-auth-container {
    display: grid;
    grid-template-columns: minmax(340px, 40%) minmax(0, 1fr);
    min-height: 100vh;
}

.op-brand-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 56px;
    overflow: hidden;
    padding: clamp(32px, 5vw, 76px);
    background:
        linear-gradient(180deg, rgb(4 20 11 / 30%) 0%, rgb(4 20 11 / 66%) 57%, #04140b 100%),
        url("/assets/img/brand/merchant-payment-hero.png") center 42% / cover no-repeat,
        #071d12;
    color: #fff;
}

.op-brand-logo {
    align-self: flex-start;
    padding: 10px 14px;
    border-radius: 12px;
    background: #fff;
}

.op-brand-logo img { display: block; width: 132px; height: auto; }

.op-brand-copy { max-width: 390px; margin: auto 0; }
.op-brand-copy h2 {
    margin: 14px 0 18px;
    font-size: clamp(38px, 4.3vw, 66px);
    line-height: 1.04;
    letter-spacing: -.055em;
}

.op-brand-copy p { color: #c8d6e7; margin: 0; }
.op-brand-copy .op-eyebrow {
    color: #ffb15e;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
}

.op-brand-note {
    margin-top: 34px;
    padding: 14px 0 14px 17px;
    border-left: 2px solid #f58220;
}

.op-brand-note p { margin-top: 4px; }

.op-form-panel {
    display: grid;
    align-items: center;
    justify-items: center;
    padding: clamp(28px, 5vw, 72px);
}

.op-form-wrapper { width: min(100%, 470px); }
.op-form-header { margin-bottom: 25px; }
.op-form-header h1 {
    margin: 0 0 5px;
    font-size: clamp(27px, 3.05vw, 43px);
    line-height: 1.12;
    letter-spacing: -.055em;
}

.op-form-header p, .op-hint, .op-terms, .op-sign-in, label span { color: #4d5e73; }
.op-form-header p { margin: 0; }
.op-form { display: grid; gap: 14px; }
.op-form-group label { display: block; margin-bottom: 5px; font-weight: 650; }
.op-form-group label span { font-size: 12px; font-weight: 500; }

.op-input {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #8494a9;
    border-radius: 8px;
    background: #fff;
    color: #14243a;
    font: inherit;
    color-scheme: light;
}

select.op-input { padding-right: 24px; }
.op-input::placeholder { color: #5e6f83; }
.op-hint, .op-terms { margin: 0; font-size: 12px; }
.op-hint { margin-top: 4px; }

.op-btn {
    min-height: 49px;
    border: 0;
    border-radius: 8px;
    background: #087a3d;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.op-btn:hover { background: #066331; }
.op-sign-in { text-align: center; font-size: 14px; }
.op-sign-in a { color: #087a3d; font-weight: 700; text-underline-offset: 3px; }

:where(input, select, button, a):focus-visible {
    outline: 3px solid #2368af;
    outline-offset: 3px;
}

.op-alert-error {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 10px 12px;
    border: 1px solid #bc5f58;
    border-radius: 8px;
    background: #fff2f0;
    color: #862b26;
}

.op-alert-error svg { flex-shrink: 0; }

@media (max-width: 760px) {
    .op-auth-container { grid-template-columns: minmax(0, 1fr); }
    .op-brand-panel { gap: 20px; padding: 24px; }
    .op-brand-copy h2 { font-size: 32px; margin: 0 0 8px; }
    .op-brand-copy h2 br, .op-brand-copy .op-eyebrow, .op-brand-note { display: none; }
    .op-form-panel { padding: 28px 24px 36px; }
}

.op-label-row, .op-name-fields, .op-phone-fields {
    display: grid;
    align-items: start;
    gap: 10px;
}

.op-label-row { grid-template-columns: 1fr auto; }
.op-name-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.op-phone-fields { grid-template-columns: 94px minmax(0, 1fr); }

.op-text-button {
    border: 0;
    padding: 0;
    background: transparent;
    color: #087a3d;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.op-text-button:hover { text-decoration: underline; }
.op-password-field { position: relative; }
.op-password-field input { padding-right: 70px; }
.op-password-field button { position: absolute; inset: 0 13px 0 auto; }

@media (max-width: 400px) {
    .op-name-fields { grid-template-columns: minmax(0, 1fr); }
}

.op-consent { display: flex; align-items: flex-start; gap: 8px; }
.op-consent input { margin: 3px 0 0; accent-color: #142945; }
.op-form-header .op-verification-step { margin-bottom: 10px; font-weight: 650; }
.op-verification-restart { margin-top: 16px; text-align: center; }

.op-form-header .op-signup-title {
    font-size: clamp(16px, 7.25cqi, 34px);
    white-space: nowrap;
}

.op-form-wrapper { container-type: inline-size; }

.op-registration { grid-template-columns: minmax(0, 1fr); }
.op-registration .op-form-panel {
    min-width: 0;
    padding: clamp(18px, 3vh, 32px) clamp(18px, 2.5vw, 36px);
}
.op-registration .op-form-header { margin-bottom: 16px; }
.op-registration .op-form { gap: 10px; }
.op-registration .op-form-group label { margin-bottom: 4px; }
.op-registration .op-input { min-height: 44px; padding-block: 7px; }
.op-registration .op-btn { min-height: 44px; }
.op-business-fields { display: grid; gap: 10px; }

.op-registration-logo { display: inline-block; margin-bottom: 10px; }
.op-registration-logo img { display: block; width: 132px; height: 42px; object-fit: contain; object-position: left center; }
.op-registration .op-signup-title { white-space: normal; font-size: clamp(24px, 6.8cqi, 32px); }

@media (min-width: 768px) {
    .op-registration { grid-template-columns: minmax(0, 3fr) minmax(380px, 2fr); }
    .op-registration .op-form-panel { grid-column: 2; grid-row: 1; }
    .op-registration .merchant-promotions {
        grid-column: 1;
        grid-row: 1;
        position: sticky;
        top: 0;
        align-self: start;
        min-height: max(480px, 100svh);
    }
}

@media (max-width: 767px) {
    .op-registration .op-form-panel { padding: 14px 16px 16px; }
    .op-registration .op-form-header { margin-bottom: 12px; }
    .op-registration .op-form-header p { font-size: 14px; }
    .op-registration .op-form { gap: 8px; }
    .op-registration .op-form-group label { font-size: 14px; }
    .op-registration .op-input { font-size: 16px; }
    .op-registration-logo { margin-bottom: 6px; }
    .op-registration-logo img { width: 120px; height: 36px; }
}

@container (min-width: 328px) {
    .op-registration .op-business-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
    .op-registration .op-name-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .op-registration .op-business-fields .op-text-button { font-size: 12px; }
}
