* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7f9;
    color: #252525;
}

/* HEADER / NAVBAR */
/* FIXED NAVBAR */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 68px;
    z-index: 1000;

    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    border-bottom: 1px solid #e9ecef;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 1;
    min-width: 0;
}

.logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-name {
    font-size: 20px;
    font-weight: 500;
    white-space: nowrap;
}

.back-link {
    font-size: 14px;
    color: #555;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 12px;
}

/* MAIN CONTENT */
.main-content {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 118px 20px 60px;
}

/* PROGRESS BAR */
.progress-bar {
    width: 100%;
    max-width: 615px;
    background: #e9ebed;
    border-radius: 30px;
    padding: 6px;
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    overflow: hidden;
}

.progress-step {
    flex: 1;
    min-width: 0;
    text-align: center;
    font-size: 13px;
    color: #777;
    padding: 10px 4px;
    white-space: nowrap;
}

.progress-step strong {
    display: inline-block;
    background: #dfe1e3;
    color: #252525;
    border-radius: 50%;
    padding: 3px 7px;
    font-size: 12px;
    margin-right: 3px;
}

.progress-step.active {
    background: white;
    border-radius: 25px;
    padding: 13px 5px;
    color: #222;
}

.progress-step.active strong {
    background: black;
    color: white;
}

/* REGISTRATION CARD */
.registration-card {
    width: 100%;
    max-width: 585px;
    min-width: 0;
    background: white;
    border-radius: 12px;
    padding: 35px 28px;
}

.registration-card h1 {
    font-size: 32px;
    line-height: 1.2;
    margin: 0 0 10px;
    letter-spacing: -0.7px;
}

.description {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin: 0 0 28px;
}

/* LABELS */
.field-label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 12px;
}

.required {
    color: #e53935;
}

/* INPUTS */
.input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #e5e7eb;
    padding: 8px 4px 12px;
    min-width: 0;
    width: 100%;
}

.input-wrapper input {
    width: 100%;
    min-width: 0;
    border: none;
    outline: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    background: transparent;
    color: #222;
}

.input-wrapper input:focus {
    outline: none;
}

.input-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.name-input,
.email-input {
    margin-bottom: 27px;
}

.password-input {
    margin-bottom: 20px;
}

/* EMAIL LABEL */
.email-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    min-width: 0;
}

.email-label-row .field-label {
    margin-bottom: 0;
}

.valid-domain {
    font-size: 12px;
    color: #168a80;
    background: #e3f5f2;
    padding: 5px 10px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* PASSWORD STRENGTH */
.password-strength-box {
    background: #f0f2f4;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
    width: 100%;
    min-width: 0;
}

.strength-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #555;
}

.strength-label {
    font-size: 12px;
    font-weight: bold;
    color: #666;
    background: #e0e3e6;
    padding: 5px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.strength-bars {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.strength-bar {
    height: 5px;
    background: #d5d9dd;
    flex: 1;
    border-radius: 5px;
}

.strength-bar.filled {
    background: #087f73;
}

.password-requirements {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px 12px;
    font-size: 13px;
    color: #777;
}

.password-requirements .valid {
    color: #168a80;
}

/* CONFIRM PASSWORD */
.confirm-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.confirm-label-row .field-label {
    margin-bottom: 0;
}

.match-status {
    font-size: 12px;
}

.match-status.match {
    color: #168a80;
}

.match-status.no-match {
    color: #e53935;
}

.confirm-input {
    margin-bottom: 25px;
}

/* OTP INFORMATION */
.otp-information {
    background: #f0f2f4;
    padding: 14px;
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.otp-icon {
    color: #168a80;
    font-size: 20px;
    flex-shrink: 0;
}

.otp-information p {
    font-size: 13px;
    line-height: 1.6;
    color: #666;
    margin: 0;
    overflow-wrap: anywhere;
}

/* REGISTER BUTTON */
#registerButton {
    width: 100%;
    background: #000;
    color: white;
    border: none;
    border-radius: 9px;
    padding: 17px 12px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}

#registerButton:hover {
    background: #252525;
}

#registerButton:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* FORM MESSAGE */
.form-message {
    display: none;
    font-size: 13px;
    line-height: 1.5;
    margin: 14px 0 0;
    overflow-wrap: anywhere;
}

.form-message.visible {
    display: block;
}

.form-message.error {
    color: #c62828;
}

.form-message.success {
    color: #168a80;
}

/* LOGIN LINK */
.login-link {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin: 28px 0 20px;
}

.login-link a {
    color: #168a80;
    text-decoration: underline;
    font-weight: 500;
}

/* SECURITY BADGE */
.security-icon {
    width: 10px;
    height: 10px;
    object-fit: contain;
    vertical-align: middle;
    flex-shrink: 0;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.security-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.security-badge {
    background: #f0f2f4;
    color: #555;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 11px;
}


/* PASSWORD EYE ICONS */
.toggle-password {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    padding: 4px;
    border: none;
    border-radius: 5px;
    background: transparent;
    color: #777;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.toggle-password:hover {
    color: #168a80;
    background: #f5f7f9;
}

.toggle-password:focus-visible {
    outline: 2px solid #168a80;
    outline-offset: 2px;
}

.toggle-password svg {
    display: block;
    width: 22px;
    height: 22px;
    pointer-events: none;
    flex-shrink: 0;
}

/* Make room for the eye icon */
.password-input,
.confirm-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

.password-input input,
.confirm-input input {
    flex: 1;
    min-width: 0;
}

/* TABLET AND MOBILE */
@media (max-width: 600px) {
    .header {
        padding: 0 4%;
    }

    .brand {
        gap: 8px;
    }

    .brand-name {
        font-size: 18px;
    }

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

    .back-link {
        font-size: 12px;
        margin-left: 8px;
    }

    .main-content {
        padding: 30px 14px 40px;
    }

    .progress-step {
        font-size: 11px;
        padding-left: 2px;
        padding-right: 2px;
    }

    .progress-step strong {
        padding: 3px 6px;
        margin-right: 2px;
    }

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

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

    .description {
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .brand-name {
        font-size: 16px;
    }

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

    .back-link {
        font-size: 11px;
    }

    .progress-step {
        font-size: 10px;
    }

    .progress-step strong {
        font-size: 10px;
        padding: 3px 5px;
    }

    .registration-card {
        padding: 24px 16px;
    }

    .email-label-row {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .password-requirements {
        grid-template-columns: 1fr;
    }

    .strength-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}