/* === ROOT VARIABLES === */
:root {
    --left-bg: #f7f2ee;
    --left-bottom: #ede4da;
    --right-bg: #f7f8fb;
    --text: #0b1220;
    --muted: #6b7384;
    --border: #d3d8df;
    --field-bg: #f7f8fb;
    --cta: #ff3b3f;
    --cta-hover: #ef3438;
    --check: #0d7b66;
    --dash: #d5d8d1;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--text);
    background: #fff;
}

/* === LAYOUT CONTAINERS === */
.main-container {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* LEFT */
.left-section {
    position: relative;
    overflow: hidden;
    background: var(--left-bg);
    padding: 74px 56px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.shape {
    position: absolute;
    top: 118px;
    left: 50%;
    width: 272px;
    height: 250px;
    transform: translateX(-50%) rotate(-8deg);
    background:
        radial-gradient(ellipse at 76% 90%, rgba(245, 191, 112, 0.92) 0 28%, transparent 62%),
        linear-gradient(140deg, rgba(255, 170, 143, 0.95) 0%, rgba(245, 139, 88, 0.9) 54%, rgba(244, 183, 98, 0.8) 100%);
    clip-path: polygon(64% 6%, 86% 16%, 57% 46%, 92% 79%, 73% 95%, 38% 63%, 8% 52%, 43% 34%);
    opacity: 0.88;
    filter: blur(0.8px);
    z-index: 0;
    pointer-events: none;
}

.shape::before {
    content: "";
    position: absolute;
    inset: -10px;
    background: linear-gradient(140deg, rgba(255, 190, 166, 0.56) 0%, rgba(245, 160, 121, 0.4) 55%, rgba(244, 194, 124, 0.36) 100%);
    clip-path: polygon(64% 6%, 86% 16%, 57% 46%, 92% 79%, 73% 95%, 38% 63%, 8% 52%, 43% 34%);
    filter: blur(10px);
    z-index: -1;
}

.steps,
.left-section h1,
.trusted-box {
    position: relative;
    z-index: 1;
}

.steps {
    margin-top: 78px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
}

.steps::before {
    content: "";
    position: absolute;
    left: 25px;
    top: 20px;
    width: 1px;
    height: calc(100% - 40px);
    background: rgba(255, 255, 255, 0.9);
}

.step-item {
    height: 50px;
    min-width: 295px;
    border-radius: 999px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    font-size: 17px;
    box-shadow: 0 2px 6px rgba(17, 24, 39, 0.06);
}

.check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--check);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}

.left-section h1 {
    margin: 68px 0 0;
    max-width: 560px;
    text-align: center;
    font-size: clamp(34px, 3.1vw, 58px);
    line-height: 1.18;
    letter-spacing: -0.5px;
    font-weight: 700;
}

.trusted-box {
    margin-top: auto;
    width: calc(100% + 112px);
    min-height: 232px;
    background: var(--left-bottom);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    padding: 24px 34px 18px;
}

.trusted {
    margin: 0;
    text-align: center;
    font-size: 18px;
    font-weight: 500;
}

.companies {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #d7ccc1;
}

.companies span {
    text-align: center;
    width: 20%;
    padding: 0 15px;
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px dashed var(--dash);
}

.companies span:last-child {
    border-right: 0;
}

.company-logo {
    max-width: 100%;
    max-height: 42px;
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    filter: grayscale(1) contrast(1.02);
}

/* RIGHT */
.right-section {
    background: var(--right-bg);
    padding: 76px 72px 36px;
    display: flex;
    justify-content: center;
}

.form-wrapper {
    width: min(100%, 548px);
}

.logo-row {
    margin-bottom: 24px;
}

.logo-image {
    width: 138px;
    height: auto;
    display: block;
}

.right-section h2 {
    margin: 0 0 24px;
    font-size: clamp(48px, 4vw, 62px);
    line-height: 1.04;
    letter-spacing: -1.3px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label,
.password-hint {
    display: none;
}

.input-box {
    position: relative;
}

.input-box i,
.phone-code-wrap i {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    font-size: 14px;
    color: #8f98a8;
    pointer-events: none;
}

.input-box input,
.input-box select,
.phone-code-wrap select,
.phone-group input {
    width: 100%;
    height: 62px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--field-bg);
    color: #2a3342;
    font: inherit;
    font-size: 17px;
    padding: 0 16px 0 46px;
}

.input-box input::placeholder,
.phone-group input::placeholder,
.input-box select,
.phone-code-wrap select {
    color: #677184;
}

.input-box select,
.phone-code-wrap select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23707b8f' d='M6 8L1.5 3.5h9z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.input-box input:focus,
.input-box select:focus,
.phone-code-wrap select:focus,
.phone-group input:focus {
    outline: none;
    border-color: #bac2cf;
    box-shadow: 0 0 0 3px rgba(186, 194, 207, 0.2);
}

.phone-group {
    display: flex;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    background: var(--field-bg);
}

.phone-code-wrap {
    width: 110px;
    position: relative;
    flex-shrink: 0;
    border-right: 1px solid var(--border);
}

.phone-code-wrap select {
    border: 0;
    border-radius: 0;
    background-color: transparent;
    padding-left: 38px;
}

.phone-group input {
    border: 0;
    border-radius: 0;
    background-color: transparent;
}

.phone-group:focus-within {
    border-color: #bac2cf;
    box-shadow: 0 0 0 3px rgba(186, 194, 207, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-group.half {
    margin-bottom: 0;
}

.datacenter {
    margin: 10px 0 16px;
    font-size: 13px;
    color: #111827;
}

.checkbox-group {
    margin: 0 0 16px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 13px;
    line-height: 1.45;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    accent-color: #4c566a;
    flex-shrink: 0;
}

.checkbox-label a {
    color: #111827;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.signup-btn {
    width: 100%;
    height: 56px;
    border: 0;
    border-radius: 14px;
    background: var(--cta);
    color: #fff;
    font-family: inherit;
    font-size: 19px;
    font-weight: 700;
    cursor: pointer;
}

.signup-btn:hover {
    background: var(--cta-hover);
}

.social-login {
    margin-top: 22px;
}

.social-login p {
    margin: 0 0 10px;
    font-size: 18px;
    color: #212839;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.icon {
    width: 98px;
    height: 60px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.icon.google i {
    background: linear-gradient(45deg, #ea4335 0%, #fbbc05 34%, #34a853 62%, #4285f4 100%);
    -webkit-background-clip: text;
    color: transparent;
}

.icon.linkedin i {
    color: #0a66c2;
}

.social-icon-windows {
    width: 20px;
    height: 20px;
    display: inline-block;
    background:
        linear-gradient(#6f6ad6, #6f6ad6) 0 0/9px 9px no-repeat,
        linear-gradient(#6f6ad6, #6f6ad6) 11px 0/9px 9px no-repeat,
        linear-gradient(#6f6ad6, #6f6ad6) 0 11px/9px 9px no-repeat,
        linear-gradient(#6f6ad6, #6f6ad6) 11px 11px/9px 9px no-repeat;
}

.login-link {
    margin-top: 18px;
    font-size: 16px;
    color: #212839;
}

.login-link a {
    color: #2348d6;
    text-decoration: underline;
}

select option {
    color: #1f2937;
    background: #ffffff;
}

.error-box {
    border: 1px solid #efb5b5;
    background: #fff6f6;
    color: #c73636;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    margin-bottom: 12px;
}

.error-box p {
    margin: 0;
}

.success-box {
    border: 1px solid #b7e1c1;
    background: #eefaf1;
    color: #1d7a35;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    margin-bottom: 12px;
}

.success-box p {
    margin: 0;
}

.field-error {
    margin: 6px 0 0;
    font-size: 13px;
    color: #f05a5a;
    line-height: 1.35;
}

.field-error a {
    color: #1f5edb;
    text-decoration: none;
}

/* OTP overlay */
body.otp-open {
    overflow: hidden;
}

.otp-page-wrap {
    position: fixed;
    inset: 0;
}

.otp-bg-frame {
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
}

.otp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(58, 67, 88, 0.58);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.otp-modal {
    width: min(100%, 560px);
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
    padding: 38px 40px 32px;
    text-align: center;
    position: relative;
}

.otp-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 50%;
    background: #ececec;
    color: #8e8e8e;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
}

.otp-icon-wrap {
    width: 72px;
    height: 72px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #e8edf8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.otp-icon {
    color: #ff6f3f;
    font-size: 36px;
}

.otp-modal h3 {
    margin: 0 0 10px;
    font-size: 38px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.otp-modal p {
    margin: 0;
    color: #4f5969;
    font-size: 15px;
}

.otp-phone {
    margin-top: 18px !important;
    font-size: 31px;
    color: #1b2432 !important;
    font-weight: 500;
}

.otp-phone a {
    color: #1f6be2;
    text-decoration: none;
    font-weight: 600;
}

.otp-input {
    margin-top: 18px;
    width: min(100%, 330px);
    height: 48px;
    border: 1px solid #d8dbe2;
    border-radius: 0;
    padding: 0 14px;
    font-size: 16px;
}

.otp-resend {
    margin-top: 12px !important;
    font-size: 15px;
    color: #8e97a6 !important;
}

.otp-resend a {
    color: #8db8f4;
    text-decoration: none;
    font-weight: 700;
}

.otp-info {
    margin-top: 8px !important;
    color: #1e7d35 !important;
    font-size: 14px !important;
}

.otp-verify-btn {
    margin-top: 20px;
    width: 118px;
    height: 48px;
    border: 0;
    border-radius: 8px;
    background: #f75b44;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 1180px) {
    .main-container {
        grid-template-columns: 1fr;
    }

    .left-section {
        display: none;
    }

    .right-section {
        padding: 56px 18px 32px;
    }

    .form-wrapper {
        width: min(100%, 640px);
        margin: 0 auto;
    }

    .right-section h2 {
        font-size: clamp(38px, 7.5vw, 52px);
    }
}

@media (max-width: 640px) {
    .right-section {
        padding: 36px 16px 28px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .icon {
        width: 70px;
        height: 48px;
    }

    .input-box input,
    .input-box select,
    .phone-code-wrap select,
    .phone-group input {
        height: 56px;
        font-size: 16px;
    }

    .otp-modal {
        padding: 28px 18px 24px;
    }

    .otp-modal h3 {
        font-size: 28px;
    }

    .otp-phone {
        font-size: 22px;
    }
}
