﻿/* =========================================================
   LUCKY WHEEL AUTH MODAL
   ========================================================= */

.lw-auth-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 10000;
}


    .lw-auth-modal.show {
        display: flex;
    }


/* =========================================================
   BACKDROP
   ========================================================= */

.lw-auth-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(1, 4, 15, .82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}


/* =========================================================
   DIALOG
   ========================================================= */

.lw-auth-dialog {
    position: relative;
    width: min(440px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 34px 36px 30px;
    border: 1px solid rgba(116, 139, 255, .35);
    border-radius: 22px;
    background: linear-gradient( 145deg, rgba(10, 20, 48, .98), rgba(5, 9, 25, .98) );
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), 0 25px 80px rgba(0, 0, 0, .65), 0 0 45px rgba(123, 48, 255, .18);
    z-index: 1;
    animation: authModalIn .22s ease-out;
}


@keyframes authModalIn {

    from {
        opacity: 0;
        transform: translateY(15px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* =========================================================
   CLOSE
   ========================================================= */

.lw-auth-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    color: rgba(255,255,255,.7);
    background: rgba(255,255,255,.06);
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
    transition: .2s ease;
}


    .lw-auth-close:hover {
        color: #fff;
        background: rgba(255, 50, 180, .18);
        transform: rotate(90deg);
    }


/* =========================================================
   HEADER
   ========================================================= */

.lw-auth-header {
    text-align: center;
    margin-bottom: 28px;
}


.lw-auth-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: #fff;
    font-size: 29px;
    background: linear-gradient( 135deg, #9b35ff, #e834ff );
    box-shadow: 0 0 28px rgba(185, 46, 255, .45);
}


.lw-auth-header h2 {
    margin: 0;
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: .8px;
}


.lw-auth-header p {
    margin: 8px 0 0;
    color: rgba(205, 214, 238, .65);
    font-size: 13px;
}


/* =========================================================
   FORM
   ========================================================= */

.lw-auth-form {
    display: flex;
    flex-direction: column;
    gap: 17px;
}


/* =========================================================
   FIELD
   ========================================================= */

.lw-auth-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}


    .lw-auth-field label {
        color: rgba(214, 222, 247, .72);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: .9px;
    }


/* =========================================================
   INPUT
   ========================================================= */

.lw-auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}


    .lw-auth-input-wrap > span {
        position: absolute;
        left: 15px;
        color: rgba(151, 117, 255, .9);
        font-size: 14px;
        pointer-events: none;
        z-index: 1;
    }


    .lw-auth-input-wrap input {
        width: 100%;
        height: 48px;
        padding: 0 45px 0 42px;
        color: #fff;
        background: rgba(255,255,255,.045);
        border: 1px solid rgba(120, 142, 200, .18);
        border-radius: 11px;
        outline: none;
        font-size: 14px;
        transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
    }


        .lw-auth-input-wrap input::placeholder {
            color: rgba(190, 199, 226, .35);
        }


        .lw-auth-input-wrap input:focus {
            background: rgba(255,255,255,.065);
            border-color: rgba(159, 71, 255, .7);
            box-shadow: 0 0 0 3px rgba(155, 53, 255, .10), 0 0 18px rgba(155, 53, 255, .12);
        }


/* =========================================================
   PASSWORD TOGGLE
   ========================================================= */

.lw-password-toggle {
    position: absolute;
    right: 12px;
    width: 30px;
    height: 30px;
    border: 0;
    background: transparent;
    color: rgba(200, 207, 230, .45);
    cursor: pointer;
}


    .lw-password-toggle:hover {
        color: #fff;
    }


/* =========================================================
   OPTIONS
   ========================================================= */

.lw-auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: -3px;
}


.lw-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(201, 210, 235, .65);
    font-size: 12px;
    cursor: pointer;
}


    .lw-checkbox input {
        width: 15px;
        height: 15px;
        accent-color: #a735ff;
    }


/* =========================================================
   MESSAGE
   ========================================================= */

.lw-auth-message {
    display: none;
    padding: 10px 12px;
    border-radius: 9px;
    font-size: 12px;
    line-height: 1.5;
}


    .lw-auth-message.show {
        display: block;
    }


    .lw-auth-message.error {
        color: #ffb8cb;
        background: rgba(255, 54, 112, .08);
        border: 1px solid rgba(255, 54, 112, .22);
    }


/* =========================================================
   SUBMIT
   ========================================================= */

.lw-auth-submit {
    position: relative;
    width: 100%;
    height: 50px;
    margin-top: 3px;
    border: 0;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient( 100deg, #792cff, #d82fff );
    box-shadow: 0 8px 25px rgba(153, 45, 255, .28);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .7px;
    cursor: pointer;
    transition: transform .2s ease, filter .2s ease;
}


    .lw-auth-submit:hover {
        transform: translateY(-2px);
        filter: brightness(1.1);
        box-shadow: 0 10px 30px rgba(153, 45, 255, .38);
    }


    .lw-auth-submit:active {
        transform: translateY(0);
    }


    .lw-auth-submit.loading {
        pointer-events: none;
        opacity: .72;
    }


.lw-auth-loading {
    display: none;
}


.lw-auth-submit.loading
.lw-auth-submit-text {
    display: none;
}


.lw-auth-submit.loading
.lw-auth-loading {
    display: inline;
}


/* =========================================================
   SWITCH
   ========================================================= */

.lw-auth-switch {
    text-align: center;
    color: rgba(196, 205, 229, .55);
    font-size: 12px;
    margin-top: 1px;
}


    .lw-auth-switch button {
        padding: 0;
        margin-left: 5px;
        border: 0;
        background: transparent;
        color: #c653ff;
        font-size: 12px;
        font-weight: 800;
        cursor: pointer;
    }


        .lw-auth-switch button:hover {
            color: #f17cff;
            text-decoration: underline;
        }


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 575.98px) {

    .lw-auth-modal {
        padding: 14px;
    }


    .lw-auth-dialog {
        width: 100%;
        padding: 30px 22px 24px;
        border-radius: 18px;
    }


    .lw-auth-header {
        margin-bottom: 23px;
    }


        .lw-auth-header h2 {
            font-size: 21px;
        }


    .lw-auth-icon {
        width: 52px;
        height: 52px;
        font-size: 25px;
    }
}
