﻿/* ===============================
   Retrieve / Reset Password Page
================================ */
.repass-page {
    color: #ffffff;
}

.repass-box {
    max-width: 560px;
    margin: 0 auto;
    padding: 46px 44px 42px 44px;
    box-sizing: border-box;
    border-radius: 12px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 22px 55px rgba(0,0,0,.18);
}

.repass-head {
    margin-bottom: 34px;
    text-align: center;
}

.repass-head span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #00CFA9;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: .8px;
}

.repass-head span i {
    font-size: 18px;
}

.repass-head h1 {
    margin: 0 0 14px 0;
    color: #ffffff;
    font-size: 2rem;
    line-height: 1.35;
    font-weight: 700;
}

.repass-head p {
    max-width: 420px;
    margin: 0 auto;
    color: rgba(255,255,255,.86);
    font-size: 15px;
    line-height: 1.65;
}

/* method */
.repass-method {
    display: flex;
    gap: 14px;
    margin-bottom: 24px;
}

.repass-method-item {
    flex: 1;
    cursor: pointer;
}

.repass-method-item input {
    display: none;
}

.repass-method-item span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 48px;
    border-radius: 24px;
    box-sizing: border-box;
    color: rgba(255,255,255,.9);
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.16);
    transition: all .25s ease;
}

.repass-method-item span i {
    color: #00CFA9;
}

.repass-method-item input:checked + span {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(90deg, #00A4FD 0%, #00CFA9 100%);
}

.repass-method-item input:checked + span i {
    color: #ffffff;
}

/* form */
.repass-form-row {
    margin-bottom: 20px;
}

.repass-form-row label {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
}

.repass-form-row label em {
    color: #00CFA9;
    font-style: normal;
}

.repass-input-box {
    position: relative;
}

.repass-input-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #00CFA9;
    font-size: 16px;
}

.repass-input-box input {
    width: 100%;
    height: 48px;
    padding: 0 16px 0 46px;
    box-sizing: border-box;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 8px;
    background: #ffffff;
    color: #111111;
    font-size: 15px;
    line-height: 48px;
    outline: none;
}

.repass-input-box input:focus {
    border-color: #00CFA9;
    box-shadow: 0 0 0 3px rgba(0,207,169,.15);
}

.repass-code-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.repass-code-box .repass-input-box {
    flex: 1;
    min-width: 0;
}

.repass-img-code {
    height: 48px;
    min-width: 120px;
    padding: 0 15px;
    box-sizing: border-box;
    border-radius: 8px;
    color: #ffffff !important;
    text-decoration: none;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition: all .25s ease;
}

.repass-img-code img {
    display: block;
    border-radius: 4px;
}

.repass-img-code:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,164,253,.25);
}

.repass-submit-btn {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 26px;
    background: linear-gradient(90deg, #00A4FD 0%, #00CFA9 100%);
    color: #ffffff;
    font-size: 16px;
    line-height: 48px;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s ease;
}

.repass-submit-btn i {
    margin-left: 10px;
}

.repass-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0,164,253,.28);
}

.repass-submit-btn.disabled,
.repass-submit-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.repass-bottom-link {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.86);
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
}

.repass-bottom-link a {
    color: #00CFA9;
    font-weight: 600;
    text-decoration: none;
}

.repass-bottom-link a:hover {
    color: #00A4FD;
}

/* username display */
.repass-user-info {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding: 16px 18px;
    box-sizing: border-box;
    border-radius: 8px;
    background: rgba(0,164,253,.14);
    border: 1px solid rgba(0,207,169,.24);
}

.repass-user-info > i {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 50%;
    background: linear-gradient(90deg, #00A4FD 0%, #00CFA9 100%);
    color: #ffffff;
    line-height: 42px;
    text-align: center;
    font-size: 18px;
}

.repass-user-info span {
    display: block;
    margin-bottom: 4px;
    color: rgba(255,255,255,.7);
    font-size: 13px;
}

.repass-user-info strong {
    display: block;
    color: #ffffff;
    font-size: 16px;
}

/* state */
.repass-state-box {
    max-width: 720px;
    margin: 0 auto;
    padding: 52px 46px;
    box-sizing: border-box;
    border-radius: 12px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    text-align: center;
    box-shadow: 0 22px 55px rgba(0,0,0,.18);
}

.repass-state-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px auto;
    border-radius: 50%;
    color: #ffffff;
    font-size: 32px;
    line-height: 72px;
}

.repass-state-icon.error {
    background: linear-gradient(90deg, #ff5f6d 0%, #ff9966 100%);
}

.repass-state-box h1 {
    margin: 0 0 18px 0;
    color: #ffffff;
    font-size: 2rem;
    line-height: 1.35;
}

.repass-state-box p {
    max-width: 600px;
    margin: 0 auto 12px auto;
    color: rgba(255,255,255,.9);
    font-size: 16px;
    line-height: 1.7;
}

.repass-state-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    height: 44px;
    margin-top: 22px;
    padding: 0 24px;
    box-sizing: border-box;
    border-radius: 24px;
    color: #ffffff !important;
    background: linear-gradient(90deg, #00A4FD 0%, #00CFA9 100%);
    text-decoration: none;
    transition: all .25s ease;
}

.repass-state-btn i {
    margin-left: 8px;
}

.repass-state-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,164,253,.25);
}

/* ===============================
   Popup
================================ */
.repass-pop-mask {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9998;
    width: 100%;
    height: 100%;
    display: none;
    background: rgba(0,0,0,.52);
}

.repass-pop {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9999;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
}

.repass-pop-box {
    position: relative;
    width: 390px;
    max-width: calc(100% - 40px);
    padding: 38px 30px 30px 30px;
    box-sizing: border-box;
    border-radius: 14px;
    background: #ffffff;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0,0,0,.25);
}

.repass-pop-close {
    position: absolute;
    right: 14px;
    top: 14px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: #f2f5f8;
    color: #666666;
    font-size: 14px;
    line-height: 32px;
    cursor: pointer;
    transition: all .25s ease;
    z-index: 2;
}

.repass-pop-close:hover {
    background: #ff5f6d;
    color: #ffffff;
}

.repass-pop-loading {
    width: 44px;
    height: 44px;
    margin: 0 auto 20px auto;
    display: none;
    border: 4px solid #e8f6ff;
    border-top-color: #00A4FD;
    border-right-color: #00CFA9;
    border-radius: 50%;
    animation: repassPopLoading .9s linear infinite;
}

@keyframes repassPopLoading {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.repass-pop-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 20px auto;
    display: none;
    border-radius: 50%;
    line-height: 52px;
    font-size: 25px;
    color: #ffffff;
}

.repass-pop-icon.success {
    display: block;
    background: linear-gradient(90deg, #00A4FD 0%, #00CFA9 100%);
}

.repass-pop-icon.success::before {
    content: "✓";
}

.repass-pop-icon.error {
    display: block;
    background: linear-gradient(90deg, #ff5f6d 0%, #ff9966 100%);
}

.repass-pop-icon.error::before {
    content: "!";
    font-weight: 700;
}

.repass-pop-title {
    margin-bottom: 10px;
    color: #111111;
    font-size: 21px;
    line-height: 1.35;
    font-weight: 700;
}

.repass-pop-text {
    margin-bottom: 24px;
    color: #555555;
    font-size: 15px;
    line-height: 1.65;
}

.repass-pop-ok {
    display: none;
    min-width: 125px;
    height: 42px;
    padding: 0 24px;
    border: 0;
    border-radius: 24px;
    background: linear-gradient(90deg, #00A4FD 0%, #00CFA9 100%);
    color: #ffffff;
    font-size: 15px;
    cursor: pointer;
    transition: all .25s ease;
}

.repass-pop-ok:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,164,253,.25);
}

/* mobile */
@media screen and (max-width: 768px) {
    .repass-page {
        padding: 0 15px;
        box-sizing: border-box;
    }

    .repass-box,
    .repass-state-box {
        padding: 36px 22px 32px 22px;
        border-radius: 10px;
    }

    .repass-head {
        margin-bottom: 28px;
    }

    .repass-head h1,
    .repass-state-box h1 {
        font-size: 1.7rem;
        line-height: 1.4;
    }

    .repass-head p,
    .repass-state-box p {
        font-size: 14px;
        line-height: 1.7;
    }

    .repass-method {
        display: block;
    }

    .repass-method-item {
        display: block;
        margin-bottom: 10px;
    }

    .repass-code-box {
        display: block;
    }

    .repass-img-code {
        width: 100%;
        margin-top: 10px;
    }

    .repass-submit-btn {
        height: 44px;
        line-height: 44px;
        font-size: 15px;
    }

    .repass-pop-box {
        padding: 34px 22px 26px 22px;
    }

    .repass-pop-title {
        font-size: 20px;
    }
}