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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #163b52;
    background: #f7fbfd;
}

/* ================= NAVBAR ================= */

.navbar {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 5%;
    background: #ffffff;
    border-bottom: 1px solid #dceaf1;
    position: relative;
    z-index: 10;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 55px;
    height: 55px;
    object-fit: contain;
}

.logo-text h1 {
    color: #124d6b;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
}

.logo-text p {
    margin-top: 2px;
    color: #557381;
    font-size: 10px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    padding: 8px 0;
    color: #3d5c6b;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.nav-links a:hover {
    color: #087da3;
}

.menu-btn {
    display: none;
    border: none;
    background: transparent;
    color: #124d6b;
    font-size: 25px;
    cursor: pointer;
}

/* ================= MAIN PAGE ================= */

.registration-page {
    min-height: calc(100vh - 147px);
    display: flex;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 55px 20px 85px;

    background: linear-gradient(
        115deg,
        #eaf7fc 0%,
        #f5fbfd 50%,
        #dff2f9 100%
    );
}

.registration-page::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.25;

    background-image:
        linear-gradient(
            rgba(24, 111, 143, 0.07) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(24, 111, 143, 0.07) 1px,
            transparent 1px
        );

    background-size: 45px 45px;
    pointer-events: none;
}

.background-circle {
    position: absolute;
    width: 500px;
    height: 500px;
    right: -150px;
    top: -170px;

    border: 1px solid rgba(17, 121, 157, 0.12);
    border-radius: 50%;

    box-shadow:
        0 0 0 45px rgba(17, 121, 157, 0.025),
        0 0 0 90px rgba(17, 121, 157, 0.018);
}

.background-circle-small {
    position: absolute;
    width: 280px;
    height: 280px;
    left: -130px;
    bottom: -150px;

    border: 1px solid rgba(20, 113, 145, 0.11);
    border-radius: 50%;
}

.background-wave {
    position: absolute;
    left: -5%;
    bottom: -145px;
    width: 110%;
    height: 190px;

    background: #ffffff;
    border-radius: 50% 50% 0 0 / 35% 35% 0 0;
    transform: rotate(-2deg);
}

/* ================= CARD ================= */

.registration-container {
    width: 100%;
    max-width: 720px;
    position: relative;
    z-index: 2;
}

.registration-card {
    display: flex;
    flex-direction: column;
}

/* ================= HEADER ================= */

.registration-header {
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.owner-icon {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 14px;

    background: #e9f6fa;
    border: 1px solid #cde5ed;
    border-radius: 50%;

    font-size: 20px;
}
.manufacturer-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    background: #e9f6fa;
    border: 1px solid #cde5ed;
    border-radius: 50%;
    font-size: 20px;
}
.registration-label {
    margin-bottom: 7px;

    color: #087da4;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.registration-header h2 {
    margin-bottom: 8px;

    color: #103f58;

    font-size: 27px;
    line-height: 1.2;
}

.registration-subtitle {
    max-width: 430px;
    margin: 0 auto;

    color: #708792;

    font-size: 12px;
    line-height: 1.6;
}

/* ================= SECTION ================= */

.registration-section {
    width: 100%;
}

.section-heading {
    display: flex;
    align-items: flex-start;

    gap: 12px;

    margin-bottom: 24px;
    padding: 16px;

    background: #f3fafb;

    border: 1px solid #d8e8ee;
    border-radius: 6px;
}

.step-number {
    width: 27px;
    height: 27px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: #087da3;
    border-radius: 50%;

    color: #ffffff;

    font-size: 13px;
    font-weight: 700;
}

.section-heading h3 {
    margin-bottom: 4px;

    color: #103f58;

    font-size: 17px;
}

.section-heading p {
    color: #708792;

    font-size: 12px;
    line-height: 1.5;
}

/* ================= FORM ================= */

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

.form-group label {
    display: block;

    margin-bottom: 7px;

    color: #31586a;

    font-size: 12px;
    font-weight: 600;
}

.form-group label span {
    color: #c53d3d;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    padding: 0 13px;

    outline: none;

    background: #ffffff;

    border: 1px solid #bfdbe5;
    border-radius: 5px;

    color: #163b52;

    font-family: inherit;
    font-size: 12px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-group input,
.form-group select {
    height: 45px;
}

.form-group textarea {
    min-height: 105px;

    padding-top: 12px;
    padding-bottom: 12px;

    resize: vertical;
    line-height: 1.5;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9aafb8;
}

.form-group select {
    cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #087da3;

    box-shadow:
        0 0 0 3px rgba(8, 125, 163, 0.10);
}

/* ================= DIVIDER ================= */

.form-divider {
    height: 1px;

    margin: 30px 0;

    background: #d8e8ee;
}

/* ================= MOBILE ================= */

.mobile-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.country-code {
    height: 45px;

    display: flex;
    align-items: center;

    padding: 0 13px;

    background: #f3fafb;

    border: 1px solid #bfdbe5;
    border-radius: 5px;

    color: #31586a;

    font-size: 12px;
    font-weight: 600;
}

.mobile-input-row input {
    flex: 1;
    min-width: 0;

    height: 45px;

    padding: 0 13px;

    outline: none;

    border: 1px solid #bfdbe5;
    border-radius: 5px;

    color: #163b52;

    font-family: inherit;
    font-size: 12px;
}

.mobile-input-row input:focus {
    border-color: #087da3;

    box-shadow:
        0 0 0 3px rgba(8, 125, 163, 0.10);
}
/* ================= EMAIL OTP ================= */

.email-otp-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.email-otp-row input {
    flex: 1;
    min-width: 0;
    height: 45px;
    padding: 0 13px;
    outline: none;
    border: 1px solid #bfdbe5;
    border-radius: 5px;
    color: #163b52;
    background: #ffffff;
    font-family: inherit;
    font-size: 12px;
}

.email-otp-row input:focus {
    border-color: #087da3;
    box-shadow:
        0 0 0 3px rgba(8, 125, 163, 0.10);
}

.email-otp-row .otp-button {
    flex-shrink: 0;
}
/* ================= OTP ================= */

.otp-button,
.verify-otp-button {
    min-height: 45px;

    padding: 0 17px;

    border: none;
    border-radius: 5px;

    background: #087da3;

    color: #ffffff;

    font-family: inherit;

    font-size: 12px;
    font-weight: 600;

    cursor: pointer;
}

.otp-button:hover,
.verify-otp-button:hover {
    background: #066b8d;
}

.field-message {
    min-height: 17px;

    margin-top: 7px;

    color: #c53d3d;

    font-size: 11px;
}

.verified-message {
    margin-top: 7px;

    color: #16834b;

    font-size: 12px;
    font-weight: 600;
}

/* ================= FILE UPLOAD ================= */

.form-group input[type="file"] {
    height: auto;
    min-height: 45px;

    padding: 9px 10px;

    background: #fafdfe;

    cursor: pointer;
}

.form-group input[type="file"]:hover {
    border-color: #087da3;
}

.form-group input[type="file"]::file-selector-button {
    margin-right: 10px;

    padding: 7px 12px;

    border: 1px solid #bfdbe5;
    border-radius: 4px;

    background: #f3fafb;

    color: #31586a;

    font-family: inherit;

    font-size: 11px;
    font-weight: 600;

    cursor: pointer;
}

.form-group input[type="file"]::file-selector-button:hover {
    background: #e9f6fa;
    border-color: #087da3;
}

/* ================= PASSWORD ================= */

.password-input-row {
    position: relative;
}

.password-input-row input {
    width: 100%;
    height: 45px;

    padding: 0 66px 0 13px;

    outline: none;

    border: 1px solid #bfdbe5;
    border-radius: 5px;

    color: #163b52;

    font-family: inherit;
    font-size: 12px;
}

.password-input-row input:focus {
    border-color: #087da3;

    box-shadow:
        0 0 0 3px rgba(8, 125, 163, 0.10);
}

.password-toggle {
    position: absolute;

    top: 50%;
    right: 10px;

    transform: translateY(-50%);

    border: none;
    background: transparent;

    color: #087da3;

    font-family: inherit;

    font-size: 11px;
    font-weight: 600;

    cursor: pointer;
}

.password-strength {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-top: 10px;
}

.strength-bar {
    width: 130px;
    height: 6px;

    overflow: hidden;

    background: #dceaf1;

    border-radius: 10px;
}

.strength-bar span {
    display: block;

    width: 0;
    height: 100%;

    border-radius: 10px;

    transition:
        width 0.2s ease,
        background 0.2s ease;
}

.password-strength p {
    color: #708792;
    font-size: 11px;
}

.password-requirements {
    margin: 12px 0 0;
    padding-left: 18px;

    color: #708792;

    font-size: 11px;
    line-height: 1.9;
}

.password-requirements li.met {
    color: #16834b;
}

.password-requirements li.met::marker {
    content: "✓  ";
}

/* ================= CAPTCHA ================= */

.captcha-area {
    margin-bottom: 18px;
}

.captcha-area label {
    display: block;

    margin-bottom: 7px;

    color: #31586a;

    font-size: 12px;
    font-weight: 600;
}

.captcha-area label span {
    color: #c53d3d;
}

.captcha-code-row {
    display: flex;
    gap: 8px;

    margin-bottom: 10px;
}

.captcha-code {
    flex: 1;

    min-height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        repeating-linear-gradient(
            -20deg,
            #f3fafb,
            #f3fafb 7px,
            #e3f3f7 7px,
            #e3f3f7 12px
        );

    border: 1px solid #bfdbe5;
    border-radius: 5px;

    color: #103f58;

    font-family: "Courier New", monospace;

    font-size: 21px;
    font-weight: 700;

    letter-spacing: 5px;

    user-select: none;
}

.captcha-refresh {
    width: 58px;

    border: 1px solid #bfdbe5;
    border-radius: 5px;

    background: #f3fafb;

    color: #087da3;

    font-size: 25px;

    cursor: pointer;
}

.captcha-refresh:hover {
    background: #e9f6fa;
    border-color: #087da3;
}

.captcha-area input {
    width: 100%;
    height: 45px;

    padding: 0 13px;

    outline: none;

    border: 1px solid #bfdbe5;
    border-radius: 5px;

    color: #163b52;

    font-family: inherit;
    font-size: 12px;
}

.captcha-area input:focus {
    border-color: #087da3;

    box-shadow:
        0 0 0 3px rgba(8, 125, 163, 0.10);
}

/* ================= CHECKBOXES ================= */

.check-row {
    display: flex;
    align-items: flex-start;

    gap: 10px;

    margin-bottom: 17px;

    color: #31586a;

    font-size: 12px;
    line-height: 1.6;

    cursor: pointer;
}

.check-row input {
    width: 15px;
    height: 15px;

    margin-top: 2px;

    accent-color: #087da3;

    cursor: pointer;
}
/* ================= TERMS LINK ================= */

.terms-link {
    color: #087da3;
    font-weight: 600;
    text-decoration: underline;
}

.terms-link:hover {
    color: #066b8d;
}

/* ================= BUTTON ================= */

.create-account-button {
    width: 100%;
    min-height: 46px;

    margin-top: 10px;

    border: none;
    border-radius: 5px;

    background: #087da3;

    color: #ffffff;

    font-family: inherit;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;
}

.create-account-button:hover {
    background: #066b8d;
}

.create-account-button:disabled {
    background: #7faeba;
    cursor: not-allowed;
}

.account-message {
    min-height: 18px;

    margin-top: 12px;

    font-size: 12px;
    font-weight: 600;

    text-align: center;
}

.account-message.error {
    color: #c53d3d;
}

.account-message.success {
    color: #16834b;
}

.login-link {
    margin-top: 13px;

    color: #557381;

    font-size: 12px;

    text-align: center;
}

.login-link a {
    color: #087da3;

    font-weight: 600;
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}

/* ================= OTP MODAL ================= */

.otp-modal {
    position: fixed;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(16, 63, 88, 0.45);

    z-index: 100;
}

.otp-modal[hidden] {
    display: none;
}

.otp-modal-card {
    width: 100%;
    max-width: 390px;

    padding: 30px;

    background: #ffffff;

    border: 1px solid #d8e8ee;
    border-radius: 8px;

    box-shadow:
        0 18px 45px rgba(30, 86, 106, 0.22);

    text-align: center;
}

.otp-modal-card h3 {
    margin-bottom: 9px;

    color: #103f58;

    font-size: 21px;
}

.otp-subtitle {
    margin-bottom: 22px;

    color: #708792;

    font-size: 12px;
    line-height: 1.6;
}

.otp-boxes {
    display: flex;
    justify-content: center;

    gap: 8px;
}

.otp-box {
    width: 42px;
    height: 48px;

    outline: none;

    border: 1px solid #bfdbe5;
    border-radius: 5px;

    color: #103f58;

    font-size: 20px;
    font-weight: 700;

    text-align: center;
}

.otp-box:focus {
    border-color: #087da3;

    box-shadow:
        0 0 0 3px rgba(8, 125, 163, 0.10);
}

.otp-timer {
    margin: 12px 0;

    color: #557381;

    font-size: 12px;
}

.resend-button {
    margin-bottom: 12px;

    border: none;
    background: transparent;

    color: #087da3;

    font-family: inherit;

    font-size: 12px;
    font-weight: 600;

    cursor: pointer;
}

.resend-button:disabled {
    color: #9aafb8;
    cursor: not-allowed;
}

.verify-otp-button {
    width: 100%;
}

/* ================= FOOTER ================= */

.footer {
    min-height: 65px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 15px 5%;

    background: #103c52;

    text-align: center;
}

.footer p {
    color: #b7d0d9;
    font-size: 11px;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {

    .nav-links {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .nav-links.mobile-active {
        display: flex;

        position: absolute;

        top: 82px;
        left: 0;
        right: 0;

        flex-direction: column;
        align-items: flex-start;

        gap: 0;

        padding: 15px 7%;

        background: #ffffff;

        border-bottom: 1px solid #dceaf1;

        box-shadow:
            0 8px 20px rgba(20, 70, 90, 0.08);
    }

    .nav-links.mobile-active a {
        width: 100%;
        padding: 12px 0;
    }
    .email-otp-row {
    flex-wrap: wrap;
}

.email-otp-row input {
    width: 100%;
    flex: none;
}

.email-otp-row .otp-button {
    width: 100%;
}
}

@media (max-width: 600px) {

    .navbar {
        min-height: 70px;
        padding: 10px 5%;
    }

    .logo {
        width: 45px;
        height: 45px;
    }

    .logo-text h1 {
        font-size: 14px;
    }

    .logo-text p {
        font-size: 8px;
    }

    .nav-links.mobile-active {
        top: 70px;
    }

    .registration-page {
        min-height: calc(100vh - 130px);
        padding: 35px 15px 70px;
    }

    .registration-card {
        padding: 28px 20px;
    }

    .registration-header h2 {
        font-size: 24px;
    }

    .background-circle {
        width: 330px;
        height: 330px;

        right: -180px;
        top: -100px;
    }

    .background-circle-small {
        width: 210px;
        height: 210px;

        left: -110px;
        bottom: -110px;
    }

    .mobile-input-row {
        flex-wrap: wrap;
    }

    .mobile-input-row input {
        width: calc(100% - 62px);
        flex: none;
    }

    .otp-button {
        width: 100%;
    }

    .otp-modal-card {
        padding: 25px 18px;
    }

    .otp-boxes {
        gap: 5px;
    }

    .otp-box {
        width: 38px;
        height: 44px;
    }

    .form-group input[type="file"] {
        font-size: 11px;
    }

    .form-group input[type="file"]::file-selector-button {
        padding: 6px 9px;
        font-size: 10px;
    }
}

/* ================= OWNER-SPECIFIC FIELDS ================= */
.organization-fields {
    display: none;
}

.organization-fields.show {
    display: block;
}

/* ================= REGISTRATION TYPE SWITCHER ================= */

.registration-type-switcher {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 0 0 30px;
    padding: 6px;
    background: #f3fafb;
    border: 1px solid #d8e8ee;
    border-radius: 7px;
    position: static;
    width: 100%;
    box-sizing: border-box;
}
.registration-panel {
    padding-top: 0;
}

.registration-type-button {
    min-height: 44px;
    border: 1px solid transparent;
    border-radius: 5px;
    background: transparent;
    color: #557381;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.registration-type-button:hover {
    color: #087da3;
    background: #e9f6fa;
}

.registration-type-button.active {
    background: #087da3;
    color: #ffffff;
    border-color: #087da3;
}

.registration-panel[hidden] {
    display: none;
}

@media (max-width: 600px) {

    .registration-type-switcher {
        grid-template-columns: 1fr;
    }
}