.register-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 14% 16%, rgba(227, 66, 52, 0.16), transparent 24%),
        radial-gradient(circle at 82% 18%, rgba(87, 110, 133, 0.14), transparent 24%),
        linear-gradient(135deg, #090b0d 0%, #111418 42%, #161a1f 100%);
    color: #edf1f5;
}

.register-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(320px, 0.85fr) minmax(620px, 1.15fr);
}

.register-brand-panel,
.register-form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px;
}

.register-brand-panel {
    position: relative;
    gap: 18px;
    background:
        linear-gradient(135deg, rgba(227, 66, 52, 0.12), transparent 40%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 24%);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.register-home-link {
    position: absolute;
    top: 28px;
    left: 28px;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 10px 13px;
    border: 1px solid transparent;
    border-radius: 12px;
    transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.register-home-link:hover,
.register-home-link:focus-visible { color: #fff; border-color: rgba(240,109,95,.42); background: rgba(240,109,95,.09); outline: none; }

.register-logo {
    width: 136px;
    height: 136px;
    object-fit: contain;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 0 0 5px rgba(227, 66, 52, 0.10);
    filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.4));
}

.register-brand-wordmark {
    flex-wrap: wrap;
    gap: 0;
}

.register-copy {
    max-width: 360px;
    line-height: 1.7;
    color: rgba(231, 236, 241, 0.74);
}

.register-form-panel {
    position: relative;
}

.register-form-panel::before {
    content: "";
    position: absolute;
    inset: 6.5% 5.5%;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.012), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
    border-radius: 30px;
}

.register-form-panel > * {
    position: relative;
    z-index: 1;
}

.register-card {
    position: relative;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 40px;
    overflow: hidden;
    border: 1px solid rgba(115, 151, 173, .2);
    border-top-color: rgba(240,109,95,.62);
    border-radius: 26px;
    background:
        linear-gradient(rgba(72, 103, 120, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(72, 103, 120, .055) 1px, transparent 1px),
        radial-gradient(circle at 100% 0, rgba(64,190,215,.08), transparent 34%),
        rgba(12, 17, 22, .94);
    background-size: 36px 36px, 36px 36px, auto, auto;
    box-shadow: 0 28px 80px rgba(0,0,0,.44), inset 0 1px 0 rgba(255,255,255,.035);
}
.register-card::before { content: ""; position: absolute; top: 0; left: 40px; width: 92px; height: 3px; border-radius: 0 0 99px 99px; background: linear-gradient(90deg, #ef6258, #45c6dc); box-shadow: 0 0 20px rgba(69,198,220,.28); }

.register-head {
    margin-bottom: 24px;
}

.register-kicker {
    color: #f06d5f;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.register-head h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    letter-spacing: 2px;
    line-height: 0.95;
    margin-bottom: 10px;
}

.register-head p {
    color: rgba(231, 236, 241, 0.72);
}

.register-alert,
.register-success {
    margin-bottom: 18px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 15px;
}

.register-success strong {
    display: block;
    margin-bottom: 10px;
    color: #f06d5f;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.register-success p {
    margin: 4px 0;
}

.register-form {
    width: 100%;
}

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

.register-form .form-group {
    display: grid;
    gap: 9px;
    min-width: 0;
}

.register-form .form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #aebbc4;
    font-size: .69rem;
    font-weight: 750;
    letter-spacing: .13em;
    line-height: 1.3;
    text-transform: uppercase;
}

.register-form .form-label::before {
    content: "";
    width: 11px;
    height: 2px;
    border-radius: 99px;
    background: linear-gradient(90deg, #ef6258, #45c6dc);
    box-shadow: 0 0 8px rgba(69,198,220,.24);
}

.form-span-2 {
    grid-column: span 2;
}

.register-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(115,151,173,.14);
}

.register-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 18px;
    color: #f7f8fa;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    border: 1px solid rgba(240, 109, 95, 0.42);
    background:
        linear-gradient(135deg, rgba(240, 109, 95, 0.08), rgba(255, 255, 255, 0.02)),
        rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    transition: transform 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.register-back:hover {
    transform: translateY(-1px);
    border-color: rgba(240, 109, 95, 0.7);
    background:
        linear-gradient(135deg, rgba(240, 109, 95, 0.16), rgba(255, 255, 255, 0.04)),
        rgba(255, 255, 255, 0.04);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.register-form .form-input,
.register-form select.form-input {
    width: 100%;
    min-height: 58px;
    padding: 0 17px;
    border: 1px solid rgba(130,158,175,.25);
    border-radius: 16px;
    outline: none;
    background:
        linear-gradient(135deg, rgba(255,255,255,.045), rgba(255,255,255,.018)),
        rgba(20,28,34,.9) !important;
    color: #f4f7fa;
    font-family: 'Barlow', sans-serif;
    font-size: .96rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025), 0 10px 26px rgba(0,0,0,.12);
    transition: transform .2s ease, border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.register-form .form-input:hover { border-color: rgba(130,177,197,.42); }
.register-form .form-input:focus,
.register-form .form-input:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(69,198,220,.78);
    background: rgba(38,65,76,.42) !important;
    box-shadow: 0 0 0 4px rgba(69,198,220,.09), 0 14px 32px rgba(0,0,0,.2), inset 3px 0 0 rgba(69,198,220,.7);
}

.register-form .password-control { position: relative; width: 100%; }
.register-form .password-control .form-input { padding-right: 58px; }
.register-form .password-toggle {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 9px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(130,158,175,.2);
    border-radius: 12px;
    color: #91a5b0;
    background: rgba(7,12,16,.38);
    transform: translateY(-50%);
    cursor: pointer;
    transition: color .2s ease, border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.register-form .password-toggle:hover,
.register-form .password-toggle:focus-visible { color: #8ee9f6; border-color: rgba(69,198,220,.52); background: rgba(69,198,220,.1); box-shadow: 0 0 0 3px rgba(69,198,220,.07); outline: none; }

.register-form .form-input:-webkit-autofill,
.register-form .form-input:-webkit-autofill:hover,
.register-form .form-input:-webkit-autofill:active {
    -webkit-text-fill-color: #f4f7fa;
    -webkit-box-shadow: 0 0 0 1000px #182128 inset, 0 10px 26px rgba(0,0,0,.12);
    caret-color: #fff;
    transition: background-color 9999s ease-out;
}
.register-form .form-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #f4f7fa;
    -webkit-box-shadow: 0 0 0 1000px #1d3038 inset, 0 0 0 4px rgba(69,198,220,.09);
}

.register-form select.form-input {
    appearance: none;
}

.register-form .form-input::placeholder {
    color: rgba(233, 237, 241, 0.52);
}

.register-form .btn-submit {
    width: auto;
    min-width: 240px;
    min-height: 54px;
    padding: 0 28px;
    border: 1px solid rgba(240, 109, 95, 0.6);
    color: #f7f8fa;
    background:
        linear-gradient(135deg, rgba(240, 109, 95, 0.28), rgba(255, 255, 255, 0.03) 42%, rgba(0, 0, 0, 0.24)),
        linear-gradient(135deg, #13171c 0%, #0b0d10 100%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.06),
        0 12px 30px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(240, 109, 95, 0.12);
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    font-family: 'Barlow', sans-serif;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    cursor: pointer;
}

.register-form .btn-submit::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0 48%, rgba(255, 255, 255, 0.08) 50%, transparent 52%);
    transform: translateX(-120%);
    transition: transform 0.6s ease;
}

.register-form .btn-submit::after {
    content: "";
    position: absolute;
    right: 10px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-top: 2px solid #f06d5f;
    border-right: 2px solid #f06d5f;
    transform: translateY(-50%) rotate(45deg);
}

.register-form .btn-submit:hover {
    transform: translateY(-1px);
    border-color: rgba(240, 109, 95, 0.9);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.1),
        0 16px 34px rgba(0, 0, 0, 0.32),
        0 0 20px rgba(240, 109, 95, 0.18);
}

.register-form .btn-submit:hover::before {
    transform: translateX(120%);
}

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

    .register-brand-panel {
        min-height: 260px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .register-form-panel {
        padding: 28px 18px 36px;
    }

    .register-form-panel::before {
        inset: 18px 14px;
    }

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

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

    .form-span-2 {
        grid-column: span 1;
    }

    .register-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .register-form .btn-submit,
    .register-back {
        width: 100%;
        text-align: center;
    }
}
