
/* =========================================================
   KENO — PROFILE / REGISTRATION
========================================================= */

.registration-page {
    min-height: 100vh;
}


/* =========================================================
   NAVBAR
========================================================= */

.registration-navbar {
    height: 74px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}


.registration-logo {
    color: #fff;
    text-decoration: none;

    font-size: 25px;
    font-weight: 900;

    letter-spacing: 4px;
}


/* =========================================================
   MAIN
========================================================= */

.registration-main {
    width: min(calc(100% - 32px), 620px);

    margin: 0 auto;
    padding: 55px 0 80px;
}


/* =========================================================
   CARD
========================================================= */

.registration-card {
    position: relative;

    box-sizing: border-box;

    padding: 42px;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 26px;

    background:
        linear-gradient(
            145deg,
            rgba(29, 25, 39, 0.98),
            rgba(14, 13, 19, 0.99)
        );

    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.35);

    overflow: hidden;
}


.registration-card::before {
    content: "";

    position: absolute;

    width: 380px;
    height: 380px;

    top: -230px;
    right: -150px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(139, 92, 246, 0.16),
            transparent 70%
        );

    pointer-events: none;
}


/* =========================================================
   TOP
========================================================= */

.registration-top {
    position: relative;
}


.registration-icon {
    width: 62px;
    height: 62px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 22px;

    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);

    background:
        linear-gradient(
            145deg,
            #2b2438,
            #18151f
        );

    color: #b596ff;

    font-size: 25px;
    font-weight: 900;

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.25);
}


.registration-label {
    margin-bottom: 9px;

    color: #a78bfa;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 2px;
}


.registration-top h1 {
    margin: 0;

    color: #fff;

    font-size: clamp(30px, 6vw, 43px);
    line-height: 1.08;
}


.registration-top p {
    max-width: 500px;

    margin: 14px 0 34px;

    color: #898490;

    font-size: 15px;
    line-height: 1.65;
}


/* =========================================================
   FORM
========================================================= */

.registration-form {
    position: relative;
}


.form-group {
    margin-bottom: 25px;
}


.form-group label {
    display: block;

    margin-bottom: 9px;

    color: #ddd8e4;

    font-size: 13px;
    font-weight: 600;
}


.form-group input {
    width: 100%;
    height: 55px;

    box-sizing: border-box;

    padding: 0 17px;

    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 13px;

    outline: none;

    background: #111016;
    color: #fff;

    font-family: inherit;
    font-size: 15px;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}


.form-group input::placeholder {
    color: #55515d;
}


.form-group input:focus {
    border-color: rgba(167, 139, 250, 0.65);

    background: #15131b;

    box-shadow:
        0 0 0 3px rgba(167, 139, 250, 0.08);
}


.form-group input.invalid {
    border-color: rgba(226, 92, 108, 0.75);

    box-shadow:
        0 0 0 3px rgba(226, 92, 108, 0.07);
}


.input-bottom {
    display: flex;
    justify-content: space-between;

    gap: 10px;

    margin-top: 7px;

    color: #56515d;

    font-size: 11px;
}


/* =========================================================
   TERMS BOX
========================================================= */

.terms-box {
    padding: 20px;
    margin-bottom: 18px;

    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;

    background: rgba(255, 255, 255, 0.025);
}


.terms-title {
    margin-bottom: 12px;

    color: #eeeaf2;

    font-size: 14px;
    font-weight: 700;
}


.terms-text {
    color: #817c88;

    font-size: 12px;
    line-height: 1.6;
}


.terms-text p {
    margin: 0 0 8px;
}


.terms-text p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   CHECKBOX
========================================================= */

.checkbox-row {
    position: relative;

    display: flex;
    align-items: flex-start;

    gap: 11px;

    margin-top: 15px;

    cursor: pointer;
}


.checkbox-row input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
}


.custom-checkbox {
    flex: 0 0 auto;

    width: 19px;
    height: 19px;

    margin-top: 1px;

    box-sizing: border-box;

    border: 1px solid #4c4654;
    border-radius: 5px;

    background: #111016;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}


.checkbox-row input:checked + .custom-checkbox {
    border-color: #8b5cf6;

    background:
        linear-gradient(
            135deg,
            #8b5cf6,
            #7047dc
        );
}


.checkbox-row input:checked + .custom-checkbox::after {
    content: "✓";

    display: block;

    color: #fff;

    font-size: 13px;
    font-weight: 800;

    line-height: 17px;
    text-align: center;
}


.checkbox-label {
    color: #85808c;

    font-size: 12px;
    line-height: 1.5;
}


.checkbox-label a {
    color: #ad94f7;

    text-decoration: none;
}


.checkbox-label a:hover {
    text-decoration: underline;
}


/* =========================================================
   ERROR
========================================================= */

.registration-error {
    min-height: 20px;

    margin: 8px 0;

    color: #e97986;

    font-size: 13px;
}


/* =========================================================
   REGISTER BUTTON
========================================================= */

.register-button {
    width: 100%;
    min-height: 55px;

    margin-top: 5px;
    padding: 0 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            #8b5cf6,
            #6d45d7
        );

    color: #fff;

    font-family: inherit;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease,
        opacity 0.2s ease;
}


.register-button:hover:not(:disabled) {
    transform: translateY(-2px);

    box-shadow:
        0 14px 32px rgba(124, 88, 220, 0.23);

    filter: brightness(1.07);
}


.register-button:active:not(:disabled) {
    transform: translateY(0);
}


.register-button:disabled {
    opacity: 0.4;

    cursor: not-allowed;

    transform: none;

    box-shadow: none;
}


/* =========================================================
   NOTE
========================================================= */

.registration-note {
    margin-top: 15px;

    color: #55515d;

    font-size: 11px;
    line-height: 1.5;

    text-align: center;
}


/* =========================================================
   TERMS MODAL
========================================================= */

.terms-modal {
    position: fixed;
    inset: 0;

    z-index: 9999;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 20px;
}


.terms-modal.open {
    display: flex;
}


.terms-overlay {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.72);

    backdrop-filter: blur(7px);
}


.terms-modal-card {
    position: relative;
    z-index: 1;

    width: min(100%, 620px);
    max-height: 80vh;

    box-sizing: border-box;

    padding: 32px;

    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            #211c2b,
            #121017
        );

    box-shadow:
        0 35px 100px rgba(0, 0, 0, 0.55);

    overflow-y: auto;
}


.close-terms {
    position: absolute;

    top: 17px;
    right: 18px;

    width: 38px;
    height: 38px;

    border: 0;
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.05);

    color: #aaa;

    font-size: 25px;

    cursor: pointer;
}


.close-terms:hover {
    background: rgba(255, 255, 255, 0.09);

    color: #fff;
}


.terms-modal-label {
    margin-bottom: 7px;

    color: #a78bfa;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 2px;
}


.terms-modal-card h2 {
    margin: 0 0 25px;

    color: #fff;

    font-size: 27px;
}


.terms-modal-content {
    color: #898490;

    font-size: 13px;
    line-height: 1.65;
}


.terms-modal-content h3 {
    margin: 22px 0 7px;

    color: #ddd8e4;

    font-size: 14px;
}


.terms-modal-content h3:first-child {
    margin-top: 0;
}


.terms-modal-content p {
    margin: 0;
}


.close-terms-button {
    width: 100%;
    height: 48px;

    margin-top: 28px;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 11px;

    background: #28222f;

    color: #fff;

    font-family: inherit;
    font-weight: 600;

    cursor: pointer;
}


.close-terms-button:hover {
    background: #31293a;
}


/* =========================================================
   ACCOUNT
========================================================= */

.account-section {
    position: relative;
}


.account-info {
    display: flex;
    flex-direction: column;

    gap: 12px;

    margin: 28px 0;
}


.account-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 16px 18px;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.03);
}


.account-info-row span {
    color: rgba(255, 255, 255, 0.55);

    font-size: 14px;
}


.account-info-row strong {
    color: #fff;

    font-size: 16px;
}


.delete-account-button {
    width: 100%;

    margin-top: 18px;
    padding: 14px 18px;

    border: 1px solid rgba(255, 80, 80, 0.35);
    border-radius: 12px;

    background: rgba(255, 70, 70, 0.08);

    color: #ff7070;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}


.delete-account-button:hover:not(:disabled) {
    background: rgba(255, 70, 70, 0.14);

    border-color: rgba(255, 80, 80, 0.55);

    color: #ff8585;

    transform: translateY(-1px);
}


.delete-account-button:disabled {
    opacity: 0.6;

    cursor: not-allowed;

    transform: none;
}


/* =========================================================
   ACCOUNT BACK BUTTON
========================================================= */

.account-back-button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 55px;

    margin-top: 10px;
    padding: 0 18px;

    box-sizing: border-box;

    text-decoration: none;
}

/* =========================================================
   CHANGE USERNAME
========================================================= */

.change-username-button {
    width: 100%;

    margin-top: 18px;
    padding: 15px 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border: 1px solid rgba(167, 139, 250, 0.18);
    border-radius: 13px;

    background: rgba(139, 92, 246, 0.08);

    color: #ddd8e4;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.change-username-button:hover {
    background: rgba(139, 92, 246, 0.13);
    border-color: rgba(167, 139, 250, 0.35);

    transform: translateY(-1px);
}

.change-username-price {
    color: #b596ff;
    font-size: 13px;
    font-weight: 700;
}


/* =========================================================
   USERNAME MODAL
========================================================= */

.username-modal {
    position: fixed;
    inset: 0;

    z-index: 10000;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 20px;
}

.username-modal.open {
    display: flex;
}

.username-modal-overlay {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.72);

    backdrop-filter: blur(8px);
}

.username-modal-card {
    position: relative;
    z-index: 1;

    width: min(100%, 430px);

    box-sizing: border-box;

    padding: 34px;

    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            #211c2b,
            #121017
        );

    box-shadow:
        0 35px 100px rgba(0, 0, 0, 0.6);
}

.username-modal-close {
    position: absolute;

    top: 15px;
    right: 16px;

    width: 36px;
    height: 36px;

    border: 0;
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.05);

    color: #aaa;

    font-size: 24px;

    cursor: pointer;
}

.username-modal-close:hover {
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
}

.username-modal-label {
    margin-bottom: 7px;

    color: #a78bfa;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 2px;
}

.username-modal-card h2 {
    margin: 0;

    color: #fff;

    font-size: 28px;
}

.username-modal-description {
    margin: 10px 0 22px;

    color: #898490;

    font-size: 13px;
    line-height: 1.5;
}

.new-username-input {
    width: 100%;
    height: 52px;

    box-sizing: border-box;

    padding: 0 15px;

    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;

    outline: none;

    background: #111016;
    color: #fff;

    font-family: inherit;
    font-size: 15px;
}

.new-username-input:focus {
    border-color: rgba(167, 139, 250, 0.65);

    box-shadow:
        0 0 0 3px rgba(167, 139, 250, 0.08);
}

.new-username-input::placeholder {
    color: #55515d;
}

.username-change-message {
    min-height: 20px;

    margin: 10px 0;

    color: #e97986;

    font-size: 13px;
}

.confirm-username-button {
    width: 100%;

    min-height: 52px;

    border: 0;
    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #8b5cf6,
            #6d45d7
        );

    color: #fff;

    font-family: inherit;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        filter 0.2s ease,
        opacity 0.2s ease;
}

.confirm-username-button:hover:not(:disabled) {
    transform: translateY(-1px);
    filter: brightness(1.07);
}

.confirm-username-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .username-modal-card {
        padding: 28px 21px;
        border-radius: 20px;
    }

}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .registration-navbar {
        height: 64px;
    }


    .registration-main {
        width: min(calc(100% - 22px), 620px);

        padding-top: 25px;
    }


    .registration-card {
        padding: 28px 21px;

        border-radius: 20px;
    }


    .registration-icon {
        width: 56px;
        height: 56px;

        border-radius: 16px;
    }


    .terms-box {
        padding: 16px;
    }


    .terms-modal-card {
        padding: 25px 20px;
    }

}