.register-page {
    min-height: calc(100vh - 180px);
    padding: 46px 18px 74px;
    position: relative;
    overflow: hidden;
    color: #dbeafe;
}

.register-page::before,
.register-page::after {
    content: '';
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(4px);
}

.register-page::before {
    width: 560px;
    height: 560px;
    top: 7%;
    left: 5%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.16), transparent 68%);
}

.register-page::after {
    width: 500px;
    height: 500px;
    right: 6%;
    bottom: 7%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.14), transparent 70%);
}

.register-shell {
    width: min(1160px, 100%);
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1.08fr);
    gap: 22px;
    align-items: start;
}

.register-hero,
.register-card {
    background:
        linear-gradient(135deg, rgba(18, 44, 62, 0.82), rgba(4, 16, 28, 0.9)),
        rgba(5, 18, 31, 0.84);
    border: 1px solid rgba(112, 169, 220, 0.18);
    border-radius: 24px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px) saturate(130%);
}

.register-hero {
    padding: 34px;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: sticky;
    top: 100px;
    overflow: hidden;
}

.register-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(96, 165, 250, 0.12), transparent 48%),
        radial-gradient(circle at 78% 20%, rgba(20, 184, 166, 0.14), transparent 32%);
    pointer-events: none;
}

.register-hero-content,
.register-benefits {
    position: relative;
    z-index: 1;
}

.register-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #7cc2ff;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.register-title {
    color: #f8fbff;
    font-size: clamp(2rem, 3.4vw, 3rem);
    line-height: 0.98;
    font-weight: 900;
    margin: 0 0 18px;
    white-space: nowrap;
}

.register-subtitle {
    color: #a9bfd7;
    font-size: 1.02rem;
    line-height: 1.7;
    max-width: 560px;
    margin: 0;
}

.register-benefits {
    display: grid;
    gap: 12px;
}

.register-benefit {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(7, 24, 39, 0.66);
    border: 1px solid rgba(119, 168, 218, 0.14);
}

.register-benefit i {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #7cc2ff;
    background: rgba(96, 165, 250, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.2);
}

.register-benefit strong {
    display: block;
    color: #eef6ff;
    font-size: 0.94rem;
    margin-bottom: 4px;
}

.register-benefit span {
    display: block;
    color: #91a9c2;
    font-size: 0.85rem;
    line-height: 1.5;
}

.register-card {
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.register-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(125, 190, 255, 0.48), transparent);
}

.register-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.register-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.24), rgba(20, 184, 166, 0.1));
    border: 1px solid rgba(96, 165, 250, 0.36);
    color: #7cc2ff;
    flex: 0 0 auto;
}

.register-icon i {
    font-size: 1.55rem;
}

.register-form-title {
    color: #f8fbff;
    font-size: 1.65rem;
    font-weight: 900;
    margin: 0 0 8px;
}

.register-form-subtitle {
    color: #9fb5cc;
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.55;
}

.register-alert {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.register-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fecaca;
}

.register-error i {
    color: #fb7185;
}

.register-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #a7f3d0;
}

.register-success i {
    color: #10b981;
}

.register-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.register-form-group {
    margin: 0;
}

.register-form-group.full {
    grid-column: 1 / -1;
}

.register-form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 900;
    font-size: 0.85rem;
    color: #d8e9ff;
    margin-bottom: 9px;
}

.register-form-group label .required {
    color: #fb7185;
}

.register-input {
    background: rgba(5, 17, 29, 0.7);
    border: 1px solid rgba(119, 168, 218, 0.18);
    color: #f3f8ff;
    min-height: 52px;
    padding: 14px 16px;
    border-radius: 14px;
    width: 100%;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
}

.register-input:focus {
    border-color: rgba(96, 165, 250, 0.65);
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.13);
    outline: none;
    background: rgba(6, 21, 36, 0.9);
}

.register-input::placeholder {
    color: #6f879f;
}

.password-wrapper {
    position: relative;
}

.password-wrapper .register-input {
    padding-right: 52px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #8bb1d3;
    font-size: 1.05rem;
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.16);
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.toggle-password:hover {
    color: #f8fbff;
    background: rgba(96, 165, 250, 0.18);
    border-color: rgba(96, 165, 250, 0.34);
}

.register-strength-track {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(2, 8, 16, 0.72);
    border: 1px solid rgba(119, 168, 218, 0.12);
    margin-top: 12px;
}

.register-strength-bar {
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: #334155;
    transition: background 0.3s ease, width 0.3s ease;
}

.register-status {
    min-height: 22px;
    margin-top: 9px;
    font-size: 0.84rem;
    font-weight: 900;
}

.register-rule-box {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.register-rule-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(96, 165, 250, 0.08);
    border: 1px solid rgba(96, 165, 250, 0.14);
    color: #afc6df;
    font-size: 0.82rem;
    line-height: 1.35;
}

.register-rule-chip i {
    color: #7cc2ff;
    flex: 0 0 auto;
}

.register-captcha {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(210px, 240px);
    gap: 12px;
    align-items: center;
    padding: 14px;
    border-radius: 16px;
    background: rgba(96, 165, 250, 0.08);
    border: 1px solid rgba(96, 165, 250, 0.14);
}

.register-captcha-question {
    font-size: 0.95rem;
    font-weight: 900;
    color: #e8f3ff;
}

.register-captcha input {
    text-align: center;
    letter-spacing: 1px;
}

.register-tos {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    border-radius: 16px;
    background: rgba(7, 24, 39, 0.66);
    border: 1px solid rgba(119, 168, 218, 0.14);
}

.register-tos input {
    width: 18px;
    height: 18px;
    accent-color: #60a5fa;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

.register-tos label {
    font-size: 0.88rem;
    color: #a9bfd7;
    line-height: 1.55;
}

.register-tos a {
    color: #7cc2ff;
    text-decoration: none;
    font-weight: 900;
}

.register-tos a:hover {
    color: #dbeafe;
}

.register-btn {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 54px;
    padding: 14px 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, #4aa3ff, #2563eb);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 900;
    font-size: 1rem;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.28);
    transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.register-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.36);
}

.register-btn:disabled {
    opacity: 0.48;
    cursor: not-allowed;
    filter: none;
    transform: none;
    box-shadow: none;
}

.register-footer {
    grid-column: 1 / -1;
    text-align: center;
    padding: 18px;
    border-radius: 16px;
    background: rgba(96, 165, 250, 0.08);
    border: 1px solid rgba(96, 165, 250, 0.14);
}

.register-footer p {
    color: #91a9c2;
    font-size: 0.88rem;
    margin: 0 0 8px;
}

.register-footer a {
    color: #7cc2ff;
    text-decoration: none;
    font-weight: 900;
    font-size: 0.95rem;
}

.register-footer a:hover {
    color: #dbeafe;
}

@media (max-width: 1020px) {
    .register-shell {
        grid-template-columns: 1fr;
    }

    .register-hero {
        position: relative;
        top: auto;
        min-height: auto;
        gap: 34px;
    }
}

@media (max-width: 700px) {
    .register-page {
        padding: 28px 12px 54px;
    }

    .register-hero,
    .register-card {
        border-radius: 18px;
        padding: 22px;
    }

    .register-form,
    .register-captcha,
    .register-rule-box {
        grid-template-columns: 1fr;
    }

    .register-title {
        font-size: 2.05rem;
        white-space: normal;
    }

    .register-header {
        align-items: flex-start;
    }
}
