* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: #f5f7fb;
    color: #172033;
}


/* =========================================================
   PAGE
========================================================= */

.office-register-page {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px 20px;
}


/* =========================================================
   CARD
========================================================= */

.office-register-card {
    width: 100%;
    max-width: 560px;

    background: #ffffff;

    border: 1px solid #e4e8f0;

    border-radius: 22px;

    padding: 42px;

    box-shadow:
        0 20px 50px rgba(23, 32, 51, 0.08);
}


/* =========================================================
   BRAND
========================================================= */

.brand {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-bottom: 34px;
}

.brand-mark {
    width: 48px;
    height: 48px;

    flex-shrink: 0;

    border-radius: 50%;

    border: 1px solid #dce3ef;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 20px;
    font-weight: 700;

    color: #172033;
}

.brand-name {
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.brand-name span {
    color: #2563eb;
}

.brand-subtitle {
    font-size: 11px;
    letter-spacing: 2px;
    color: #8a94a8;
    margin-top: 2px;
}


/* =========================================================
   HEADING
========================================================= */

.heading {
    margin-bottom: 28px;
}

.heading h1 {
    margin: 0 0 8px;

    font-size: 30px;
    line-height: 1.2;

    letter-spacing: -0.7px;
}

.heading p {
    margin: 0;

    color: #78849a;

    font-size: 15px;

    line-height: 1.6;
}


/* =========================================================
   FIELDS
========================================================= */

.field {
    margin-bottom: 19px;
}

.field label {
    display: block;

    margin-bottom: 8px;

    font-size: 14px;
    font-weight: 600;

    color: #172033;
}

.field input,
.field select {
    width: 100%;

    height: 52px;

    padding: 0 15px;

    border: 1px solid #dbe2ed;

    border-radius: 11px;

    background: #f9fbff;

    color: #172033;

    font-size: 15px;

    outline: none;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.field input::placeholder {
    color: #9aa4b6;
}

.field input:focus,
.field select:focus {
    border-color: #2563eb;

    background: #ffffff;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.10);
}


/* =========================================================
   PHONE FIELD
========================================================= */

.phone-wrapper {
    display: flex;

    align-items: stretch;

    gap: 10px;

    width: 100%;
}

.country-code {
    width: 120px;

    flex: 0 0 120px;

    height: 52px;

    padding: 0 12px;

    border: 1px solid #dbe2ed;

    border-radius: 11px;

    background: #f9fbff;

    color: #172033;

    font-size: 14px;

    outline: none;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.country-code:focus {
    border-color: #2563eb;

    background: #ffffff;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.10);
}

.phone-input-wrapper {
    position: relative;

    flex: 1;

    min-width: 0;
}

.phone-input-wrapper i {
    position: absolute;

    left: 16px;

    top: 50%;

    transform: translateY(-50%);

    color: #8a94a8;

    font-size: 15px;

    pointer-events: none;
}

.phone-input-wrapper input {
    width: 100%;

    height: 52px;

    padding: 0 15px 0 44px;

    border: 1px solid #dbe2ed;

    border-radius: 11px;

    background: #f9fbff;

    color: #172033;

    font-size: 15px;

    outline: none;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.phone-input-wrapper input::placeholder {
    color: #9aa4b6;
}

.phone-input-wrapper input:focus {
    border-color: #2563eb;

    background: #ffffff;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.10);
}


/* =========================================================
   BUTTON
========================================================= */

.primary-button {
    width: 100%;

    min-height: 52px;

    margin-top: 8px;

    border: 0;

    border-radius: 11px;

    background: #2563eb;

    color: #ffffff;

    font-size: 15px;

    font-weight: 600;

    cursor: pointer;

    text-decoration: none;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    transition:
        background 0.2s ease,
        transform 0.15s ease;
}

.primary-button:hover {
    background: #1d4ed8;
}

.primary-button:active {
    transform: translateY(1px);
}

.primary-button span {
    font-size: 20px;
}


/* =========================================================
   ERROR
========================================================= */

.error-box {
    margin-bottom: 22px;

    padding: 14px 16px;

    border-radius: 10px;

    background: #fff1f2;

    border: 1px solid #fecdd3;

    color: #dc2626;

    font-size: 14px;

    line-height: 1.6;
}


/* =========================================================
   SUCCESS
========================================================= */

.success-box {
    text-align: center;

    padding: 20px 5px;
}

.success-icon {
    width: 64px;
    height: 64px;

    margin: 0 auto 22px;

    border-radius: 50%;

    background: #ecfdf5;

    color: #16a34a;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 30px;

    font-weight: 700;
}

.success-box h1 {
    margin: 0 0 12px;

    font-size: 27px;
}

.success-box p {
    margin: 7px 0;

    color: #78849a;

    line-height: 1.6;
}

.success-box .primary-button {
    margin-top: 25px;
}


/* =========================================================
   LOGIN LINK
========================================================= */

.login-link {
    text-align: center;

    margin-top: 24px;

    color: #7b879c;

    font-size: 14px;
}

.login-link a {
    color: #2563eb;

    text-decoration: none;

    font-weight: 600;
}

.login-link a:hover {
    text-decoration: underline;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    margin-top: 30px;

    padding-top: 22px;

    border-top: 1px solid #edf0f5;

    text-align: center;

    color: #9aa4b6;

    font-size: 13px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .office-register-page {
        padding: 20px 14px;
    }

    .office-register-card {
        padding: 28px 22px;

        border-radius: 18px;
    }

    .heading h1 {
        font-size: 26px;
    }

    .brand {
        margin-bottom: 28px;
    }

    .phone-wrapper {
        gap: 8px;
    }

    .country-code {
        width: 108px;

        flex: 0 0 108px;

        padding: 0 8px;

        font-size: 13px;
    }

    .phone-input-wrapper input {
        padding-left: 40px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .office-register-card {
        padding: 24px 17px;
    }

    .phone-wrapper {
        gap: 7px;
    }

    .country-code {
        width: 100px;

        flex-basis: 100px;

        font-size: 12px;
    }

    .phone-input-wrapper input {
        font-size: 14px;

        padding-left: 38px;
    }

}