.register-container {
    width: 100%;
    max-width: 520px;
}

.phone-row {
    display: grid;
    grid-template-columns: 126px minmax(0, 1fr);
    gap: 10px;
    width: 100%;
    align-items: stretch;
}

.phone-select-wrap {
    position: relative;
    width: 100%;
    min-width: 0;
}

.phone-prefix,
.phone-number {
    width: 100%;
    min-width: 0;
}

.phone-prefix {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    height: 48px;
    padding: 0 42px 0 14px;
    border-radius: 12px;
    border: 1px solid rgba(212, 169, 77, 0.42);
    background: rgba(255, 255, 255, 0.06);
    color: #F5EFE4;
    font-size: 0.96rem;
    font-weight: 600;
    line-height: 1;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.phone-prefix:hover,
.phone-prefix:focus {
    border-color: rgba(212, 169, 77, 0.78);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(212, 169, 77, 0.10);
    outline: none;
}

.phone-select-wrap::after {
    content: "⌄";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-52%);
    color: #D4A94D;
    font-size: 1rem;
    font-weight: 700;
    pointer-events: none;
}

.phone-prefix option {
    color: #0E1329;
    background: #FFFFFF;
    font-weight: 600;
}

.password-help,
.field-help {
    margin-top: 7px;
    font-size: 0.82rem;
    line-height: 1.45;
    opacity: 0.72;
}

.error-list {
    margin: 0;
    padding-left: 18px;
}

.error-list li + li {
    margin-top: 5px;
}

.hidden-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (max-width: 900px) {
    html,
    body {
        width: 100%;
        min-width: 0;
        min-height: 100%;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }

    body {
        min-height: 100svh;
        min-height: 100dvh;
    }

    .page-content {
        width: 100%;
        max-width: none;
        min-height: 100svh;
        min-height: 100dvh;
        margin: 0;
        padding: 0;
        display: block;
    }

    .login-container.register-container {
        width: 100%;
        max-width: none;
        min-height: 100svh;
        min-height: 100dvh;
        margin: 0;
        padding:
            max(78px, calc(env(safe-area-inset-top) + 64px))
            max(22px, env(safe-area-inset-right))
            max(28px, calc(env(safe-area-inset-bottom) + 20px))
            max(22px, env(safe-area-inset-left));
        display: flex;
        flex-direction: column;
        justify-content: center;
        border: 0;
        border-radius: 0;
        background:
            radial-gradient(
                circle at 50% 7%,
                rgba(217, 164, 65, 0.055),
                transparent 28%
            ),
            rgba(14, 19, 41, 0.97);
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .login-container.register-container::before {
        display: none;
    }

    .language-selector {
        top: max(14px, env(safe-area-inset-top));
        right: max(14px, env(safe-area-inset-right));
        z-index: 100;
        box-shadow: none;
    }

    .company-name,
    .login-header,
    .status-message,
    #registerForm,
    .divider,
    .register-button {
        width: 100%;
        max-width: 560px;
        margin-right: auto;
        margin-left: auto;
    }

    .form-group {
        width: 100%;
    }

    .form-group input,
    .phone-prefix {
        font-size: 16px;
    }

    .phone-row {
        grid-template-columns: 118px minmax(0, 1fr);
    }

    .button {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .phone-row {
        grid-template-columns: 108px minmax(0, 1fr);
    }

    .phone-prefix {
        padding-right: 34px;
        padding-left: 11px;
    }

    .phone-select-wrap::after {
        right: 11px;
    }
}

@media (max-width: 900px) and (max-height: 860px) {
    .login-container.register-container {
        justify-content: flex-start;
        padding-top:
            max(72px, calc(env(safe-area-inset-top) + 60px));
    }

    .company-name {
        margin-bottom: 20px;
        padding-bottom: 17px;
    }

    .login-header {
        margin-bottom: 22px;
    }

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

    .divider {
        margin-top: 20px;
        margin-bottom: 16px;
    }
}

@media (max-width: 380px) {
    .login-container.register-container {
        padding-right: 17px;
        padding-left: 17px;
    }

    .phone-row {
        grid-template-columns: 101px minmax(0, 1fr);
        gap: 8px;
    }

    .phone-prefix {
        padding-right: 29px;
        padding-left: 9px;
        font-size: 15px;
    }

    .phone-select-wrap::after {
        right: 9px;
    }
}