/*
 * Register Page
 *
 * Cinematic guest-auth layout scoped to register.php. Global header/footer
 * remain unchanged.
 */

.auth-showcase-body .content-wrapper-wide {
    padding-right: 0;
    padding-left: 0;
    background: transparent !important;
}

.register-page {
    min-height: calc(100vh - var(--content-margin));
    margin-top: calc(var(--content-margin) * -1);
    padding: calc(var(--content-margin) + 42px) clamp(18px, 4vw, 78px) 28px;
    position: relative;
    overflow: hidden;
    color: #dcecff;
    background: transparent !important;
    box-shadow: none !important;
}

.register-page::before,
.register-page::after {
    content: none !important;
    display: none !important;
}

.auth-showcase-body .frost-footer {
    margin-top: 0;
    box-shadow: none;
}

.auth-showcase-body .frost-footer::before {
    box-shadow: none;
}

.auth-shell {
    width: min(1360px, calc(100vw - 34px));
    min-height: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(500px, .95fr) minmax(560px, 1.05fr);
    gap: clamp(34px, 5vw, 70px);
    align-items: center;
}

.register-hero {
    display: grid;
    align-content: center;
    gap: 28px;
}

.register-hero-content {
    text-align: center;
}

.auth-rune {
    width: 82px;
    height: 42px;
    display: grid;
    place-items: center;
    margin: 0 auto 7px;
    color: #43c6ff;
    font-size: 2rem;
    text-shadow: 0 0 18px rgba(37, 181, 255, .72);
}

.register-title {
    margin: 0;
    color: #eef8ff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 5.45rem;
    font-weight: 900;
    line-height: .86;
    letter-spacing: 0;
    text-transform: uppercase;
    text-shadow:
        0 0 10px rgba(35, 174, 255, .72),
        0 5px 22px rgba(0, 0, 0, .72);
}

.register-title span {
    display: block;
    color: #bfeaff;
    font-size: 1.18em;
}

.register-subtitle {
    width: min(600px, 100%);
    margin: 22px auto 0;
    color: #c5d5e5;
    font-size: 1.03rem;
    line-height: 1.65;
    text-align: center;
}

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

.register-benefit,
.auth-stat-strip,
.register-tos {
    border: 1px solid rgba(80, 160, 232, .24);
    background:
        linear-gradient(145deg, rgba(7, 28, 50, .66), rgba(2, 10, 22, .82)),
        rgba(2, 13, 25, .76);
    box-shadow: inset 0 1px rgba(160, 221, 255, .08), 0 18px 42px rgba(0, 0, 0, .3);
    backdrop-filter: blur(10px);
}

.register-benefit {
    min-height: 116px;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 16px 18px;
    border-radius: 8px;
}

.register-benefit i {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #9fe5ff;
    background: rgba(29, 129, 216, .16);
    box-shadow: 0 0 28px rgba(31, 168, 255, .25);
    font-size: 2rem;
}

.register-benefit.purple i { color: #c99bff; background: rgba(120, 47, 210, .18); box-shadow: 0 0 28px rgba(146, 75, 255, .25); }
.register-benefit.teal i { color: #5ef1df; background: rgba(31, 178, 166, .16); box-shadow: 0 0 28px rgba(54, 225, 207, .22); }
.register-benefit.gold i { color: #ffd176; background: rgba(219, 154, 38, .16); box-shadow: 0 0 28px rgba(238, 172, 47, .22); }
.register-benefit.red i { color: #ff8a78; background: rgba(224, 78, 61, .14); box-shadow: 0 0 28px rgba(244, 88, 70, .2); }
.register-benefit.cyan i { color: #74caff; background: rgba(46, 139, 220, .16); box-shadow: 0 0 28px rgba(65, 179, 255, .22); }

.register-benefit strong,
.register-benefit small {
    display: block;
}

.register-benefit strong {
    color: #f4f9ff;
    font-size: .91rem;
    font-weight: 950;
}

.register-benefit small {
    margin-top: 5px;
    color: #a9bdd1;
    font-size: .8rem;
    line-height: 1.45;
}

.auth-stat-strip {
    min-height: 74px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-radius: 8px;
}

.auth-stat-strip span {
    min-width: 0;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-content: center;
    column-gap: 10px;
    padding: 13px 20px;
}

.auth-stat-strip span + span {
    border-left: 1px solid rgba(90, 166, 226, .2);
}

.auth-stat-strip i {
    grid-row: span 2;
    align-self: center;
    color: #8ccfff;
    font-size: 1.7rem;
}

.auth-stat-strip strong {
    color: #f3f9ff;
    font-size: 1.25rem;
    line-height: 1;
}

.auth-stat-strip small {
    color: #9cb1c7;
    font-size: .73rem;
}

.register-card {
    position: relative;
    padding: 36px 28px 26px;
    border: 1px solid rgba(80, 160, 232, .34);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(7, 28, 50, .72), rgba(2, 10, 22, .84)),
        rgba(2, 13, 25, .76);
    box-shadow: inset 0 1px rgba(160, 221, 255, .08), 0 18px 42px rgba(0, 0, 0, .3);
    backdrop-filter: blur(10px);
}

.register-card::before,
.register-card::after {
    content: none !important;
    display: none !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.register-header {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 10px;
    margin-bottom: 22px;
    text-align: center;
}

.register-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    color: #dcefff;
    border: 1px solid rgba(112, 198, 255, .42);
    clip-path: polygon(50% 0, 86% 14%, 100% 50%, 86% 86%, 50% 100%, 14% 86%, 0 50%, 14% 14%);
    background: linear-gradient(145deg, rgba(16, 82, 139, .96), rgba(4, 18, 36, .98));
    box-shadow: 0 0 30px rgba(29, 160, 255, .36);
    font-size: 1.25rem;
}

.register-form-title {
    margin: 0;
    color: #f0f7ff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.35rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
    text-shadow: 0 0 16px rgba(91, 185, 255, .45);
}

.register-form-title::before,
.register-form-title::after {
    content: "";
    display: inline-block;
    width: 58px;
    height: 1px;
    margin: 0 13px 9px;
    background: linear-gradient(90deg, transparent, #2bb6ff);
}

.register-form-title::after {
    background: linear-gradient(90deg, #2bb6ff, transparent);
}

.register-form-subtitle {
    margin: 10px 0 0;
    color: #aebfd1;
    font-size: .91rem;
}

.register-alert {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 18px;
    padding: 13px 15px;
    border-radius: 7px;
    font-size: .86rem;
}

.register-error { color: #ffc3c9; border: 1px solid rgba(255, 109, 125, .32); background: rgba(110, 28, 42, .24); }
.register-success { color: #b9f8d6; border: 1px solid rgba(48, 214, 142, .3); background: rgba(20, 94, 60, .24); }

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

.register-form-group.full,
.register-tos,
.register-btn,
.register-footer {
    grid-column: 1 / -1;
}

.register-form-group label {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
    color: #dbe8f8;
    font-size: .72rem;
    font-weight: 950;
    letter-spacing: 0;
    text-transform: uppercase;
}

.required {
    color: #ff695f;
}

.auth-input {
    position: relative;
    display: grid;
    align-items: center;
}

.auth-input > i {
    position: absolute;
    left: 16px;
    z-index: 2;
    color: #86b9df;
    font-size: 1rem;
}

.auth-input > i:last-child:not(:first-child) {
    right: 14px;
    left: auto;
}

.register-input {
    width: 100%;
    min-height: 48px;
    padding: 0 48px;
    color: #edf6ff;
    border: 1px solid rgba(100, 159, 207, .26);
    border-radius: 7px;
    background: rgba(0, 9, 20, .62);
    outline: none;
    box-shadow: inset 0 0 18px rgba(0, 0, 0, .22);
}

.register-input:focus {
    border-color: rgba(74, 181, 255, .72);
    box-shadow: 0 0 0 3px rgba(33, 162, 255, .12), inset 0 0 18px rgba(0, 0, 0, .2);
}

.register-input::placeholder {
    color: #7f93aa;
}

.toggle-password {
    width: 36px;
    height: 36px;
    position: absolute;
    right: 7px;
    z-index: 3;
    display: grid;
    place-items: center;
    color: #9db7cd;
    border: 0;
    border-radius: 6px;
    background: transparent;
}

.register-status {
    min-height: 18px;
    margin-top: 7px;
    color: #90aabe;
    font-size: .72rem;
    font-weight: 800;
}

.register-requirements-title {
    display: block;
    margin-bottom: 9px;
    color: #9fb4c9;
    font-size: .72rem;
    font-weight: 950;
    letter-spacing: 0;
    text-transform: uppercase;
}

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

.register-rule-chip {
    min-height: 58px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    padding: 10px;
    color: #c5d5e5;
    border: 1px solid rgba(80, 160, 232, .2);
    border-radius: 7px;
    background: rgba(8, 31, 55, .56);
    font-size: .76rem;
    line-height: 1.2;
}

.register-rule-chip i {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    color: #63d1ff;
    border-radius: 7px;
    background: rgba(20, 129, 215, .22);
}

.register-rule-chip.valid {
    color: #91f1d0;
    border-color: rgba(42, 211, 160, .34);
}

.register-rule-chip.invalid {
    color: #ffb3bd;
    border-color: rgba(255, 109, 125, .28);
}

.register-tos {
    display: flex;
    gap: 11px;
    align-items: center;
    padding: 13px 15px;
    border-radius: 7px;
    color: #b8cadb;
}

.register-tos input {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    accent-color: #25aaff;
}

.register-tos label {
    margin: 0;
    font-size: .84rem;
    line-height: 1.45;
}

.register-tos a,
.register-footer a {
    color: #20c1ff;
    font-weight: 900;
    text-decoration: none;
}

.register-captcha {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(100, 159, 207, .22);
    border-radius: 7px;
    background: rgba(0, 13, 28, .52);
}

.register-captcha-question {
    color: #f1f8ff;
    font-weight: 900;
}

.register-captcha .register-input {
    padding-right: 42px;
    padding-left: 14px;
}

.register-turnstile {
    display: flex;
    justify-content: center;
}

.register-btn {
    min-height: 55px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    border: 1px solid rgba(91, 205, 255, .75);
    border-radius: 6px;
    background:
        linear-gradient(90deg, rgba(0, 153, 255, .88), rgba(26, 91, 223, .92)),
        #0b6fe6;
    box-shadow: 0 0 24px rgba(0, 157, 255, .38), inset 0 0 18px rgba(144, 222, 255, .28);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.08rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

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

.register-footer {
    color: #adbdce;
    text-align: center;
}

.register-footer p {
    display: inline;
    margin: 0;
}

@media (max-width: 1200px) {
    .auth-shell {
        grid-template-columns: 1fr;
        gap: 56px;
    }

    .register-card {
        width: min(720px, 100%);
        margin: 0 auto;
    }

    .register-title {
        font-size: 4.6rem;
    }
}

@media (max-width: 760px) {
    .register-page {
        padding-right: 12px;
        padding-left: 12px;
    }

    .auth-shell {
        width: min(100%, 560px);
        min-height: 0;
    }

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

    .register-title {
        font-size: 3.25rem;
    }

    .register-form-title {
        font-size: 1.9rem;
    }

    .auth-stat-strip span + span {
        border-top: 1px solid rgba(90, 166, 226, .2);
        border-left: 0;
    }

    .register-card {
        padding: 26px 18px 22px;
    }

    .register-form-title::before,
    .register-form-title::after {
        width: 24px;
        margin-inline: 8px;
    }
}
