.register-shell,
.login-shell,
.reset-shell,
.auth-reset-shell {
    position: relative;
}

.section .register-shell,
.section .login-shell,
.section .reset-shell,
.section .auth-reset-shell {
    padding-top: 4px;
}

.register-hero,
.login-hero,
.reset-hero,
.auth-reset-hero {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(32, 39, 58, .98) 0%, rgba(16, 22, 34, .98) 52%, rgba(41, 31, 83, .95) 100%) !important;
    border: 1px solid rgba(111, 139, 255, .22) !important;
    box-shadow:
        0 24px 70px rgba(0, 0, 0, .36),
        inset 0 1px 0 rgba(255, 255, 255, .06) !important;
}

.register-hero::before,
.login-hero::before,
.reset-hero::before,
.auth-reset-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(122, 63, 255, .55), rgba(55, 132, 255, .42), rgba(23, 201, 144, .35)) top left / 100% 3px no-repeat;
}

.register-title,
.login-title,
.reset-title,
.auth-reset-title {
    max-width: 760px;
    letter-spacing: 0 !important;
}

.register-desc,
.login-desc,
.reset-desc,
.auth-reset-desc {
    max-width: 700px;
}

.register-layout,
.login-layout {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
}

.register-panel,
.login-panel,
.reset-panel,
.auth-reset-panel {
    position: relative;
    overflow: hidden;
    border-radius: 18px !important;
    background:
        linear-gradient(180deg, rgba(28, 36, 52, .96) 0%, rgba(17, 23, 35, .98) 100%) !important;
    border: 1px solid rgba(135, 153, 190, .18) !important;
    box-shadow:
        0 18px 54px rgba(0, 0, 0, .30),
        inset 0 1px 0 rgba(255, 255, 255, .045) !important;
}

.register-panel::before,
.login-panel::before,
.reset-panel::before,
.auth-reset-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .035), transparent 120px),
        radial-gradient(circle at 100% 0%, rgba(120, 82, 255, .14), transparent 190px);
}

.register-panel > *,
.login-panel > *,
.reset-panel > *,
.auth-reset-panel > * {
    position: relative;
    z-index: 1;
}

.register-panel-title,
.login-panel-title,
.reset-panel-title,
.auth-reset-panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px !important;
    letter-spacing: 0 !important;
}

.register-panel-title::before,
.login-panel-title::before,
.reset-panel-title::before,
.auth-reset-panel-title::before,
.register-subtitle::before {
    content: "";
    width: 4px;
    height: 18px;
    border-radius: 999px;
    background: linear-gradient(180deg, #8d5cff, #4d7cff);
    box-shadow: 0 0 18px rgba(125, 92, 255, .45);
}

.register-subtitle {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 15px !important;
    color: #f4f7ff !important;
}

.register-field label,
.login-field label,
.reset-field label,
.auth-reset-field label {
    color: #eef3ff !important;
    letter-spacing: 0 !important;
}

.register-field input,
.register-field select,
.login-field input,
.reset-field input,
.auth-reset-field input {
    min-height: 52px !important;
    border-radius: 12px !important;
    background: linear-gradient(180deg, rgba(10, 16, 27, .98), rgba(9, 14, 24, .98)) !important;
    border-color: rgba(134, 151, 185, .20) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

.register-field input:focus,
.register-field select:focus,
.login-field input:focus,
.reset-field input:focus,
.auth-reset-field input:focus {
    border-color: rgba(108, 140, 255, .56) !important;
    box-shadow:
        0 0 0 4px rgba(84, 112, 255, .14),
        0 12px 30px rgba(0, 0, 0, .18) !important;
}

.register-phone-field {
    display: grid;
    grid-template-columns: minmax(210px, 250px) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.register-phone-picker {
    position: relative;
    min-width: 0;
}

.register-country-toggle,
.register-country-option {
    width: 100%;
    min-height: 52px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto 12px;
    align-items: center;
    gap: 10px;
    border-radius: 12px;
    border: 1px solid rgba(134, 151, 185, .20);
    background: linear-gradient(180deg, rgba(10, 16, 27, .98), rgba(9, 14, 24, .98));
    color: #ffffff;
    padding: 0 12px;
    text-align: left;
    cursor: pointer;
}

.register-country-toggle::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid #9eabc3;
    border-bottom: 2px solid #9eabc3;
    transform: rotate(45deg);
    margin-left: 2px;
}

.register-country-toggle img,
.register-country-option img {
    width: 32px;
    height: 22px;
    border-radius: 4px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .16);
}

.register-country-toggle span,
.register-country-option span {
    min-width: 0;
    overflow: hidden;
    color: #ffffff;
    font-size: 13px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.register-country-toggle strong,
.register-country-option strong {
    color: #dce7ff;
    font-size: 13px;
    font-weight: 900;
}

.register-country-toggle:focus {
    outline: none;
    border-color: rgba(108, 140, 255, .56);
    box-shadow:
        0 0 0 4px rgba(84, 112, 255, .14),
        0 12px 30px rgba(0, 0, 0, .18);
}

.register-country-menu {
    position: absolute;
    z-index: 30;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    max-height: 258px;
    overflow: auto;
    padding: 6px;
    border-radius: 14px;
    background: #0c1320;
    border: 1px solid rgba(134, 151, 185, .24);
    box-shadow: 0 22px 50px rgba(0, 0, 0, .45);
}

.register-country-menu[hidden] {
    display: none !important;
}

.register-country-option {
    min-height: 46px;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    border-radius: 10px;
    border-color: transparent;
    background: transparent;
}

.register-country-option:hover {
    background: rgba(78, 111, 255, .14);
}

.register-phone-hint {
    display: block;
    margin-top: 7px;
    color: #95a4c0;
    font-size: 12px;
    line-height: 1.45;
}

.register-side-item,
.login-side-item {
    border-radius: 14px !important;
    background:
        linear-gradient(180deg, rgba(16, 24, 38, .86), rgba(12, 18, 30, .92)) !important;
    border-color: rgba(135, 153, 190, .14) !important;
}

.register-alert,
.login-alert,
.reset-alert,
.auth-reset-alert {
    border-radius: 12px !important;
}

.register-actions .btn,
.login-actions .btn,
.reset-actions .btn,
.auth-reset-btn-primary,
.auth-reset-btn-secondary {
    min-height: 48px;
    border-radius: 12px !important;
}

.register-actions .btn-primary,
.login-actions .btn-primary,
.reset-actions .btn-primary,
.auth-reset-btn-primary {
    background: linear-gradient(135deg, #7d3cff, #315dff) !important;
    box-shadow: 0 16px 34px rgba(78, 79, 255, .32) !important;
}

.register-actions .btn-secondary,
.login-actions .btn-secondary,
.reset-actions .btn-secondary,
.auth-reset-btn-secondary {
    background: rgba(18, 26, 40, .94) !important;
    border: 1px solid rgba(140, 156, 190, .20) !important;
}

@media (max-width: 980px) {
    .register-layout,
    .login-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .register-hero,
    .login-hero,
    .reset-hero,
    .auth-reset-hero,
    .register-panel,
    .login-panel,
    .reset-panel,
    .auth-reset-panel {
        border-radius: 16px !important;
    }

    .register-phone-field {
        grid-template-columns: 1fr;
    }
}
