


.auth-modal-card,
.vip-modal-card {
    --auth-accent: var(--theme-color, #e67e22);
}


.auth-modal-card {
    background: #fff;
    width: 90%;
    max-width: 380px;
    border-radius: 24px;
    padding: 0;
    box-shadow: 0 24px 80px rgba(0,0,0,0.18), 0 0 0 2px var(--auth-accent);
    max-height: 85vh;
    overflow: hidden;
    position: relative;
}


.auth-brand-area {
    text-align: center;
    padding: 32px 24px 20px;
}


.auth-brand-logo {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #0984e3, #a29bfe);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-brand-logo svg {
    width: 40px;
    height: 40px;
    animation: auth-logo-float 6s ease-in-out infinite;
}


.auth-brand-logo::after {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: rotate(45deg);
    animation: auth-logo-shine 6s infinite;
}

@keyframes auth-logo-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-4px) scale(1.08); }
}

@keyframes auth-logo-shine {
    0% { transform: translate(-100%, -100%) rotate(45deg); }
    50%, 100% { transform: translate(100%, 100%) rotate(45deg); }
}

.auth-brand-title {
    font-size: 20px;
    font-weight: 800;
    color: #2c3e50;
    margin: 0;
    letter-spacing: 0.5px;
}

.auth-brand-title .cc {
    color: var(--auth-accent);
}


.auth-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #f5f6fa;
    border: none;
    color: #999;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    z-index: 1;
}

.auth-modal-close:hover {
    background: #ebebeb;
    color: #555;
}

.auth-modal-close:active {
    transform: scale(0.92);
}


.auth-tabs-wrap {
    display: flex;
    margin: 0 24px 20px;
    background: #f5f6fa;
    border-radius: 12px;
    padding: 4px;
    position: relative;
}

.auth-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #999;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 9px;
    transition: color 0.25s;
    position: relative;
    z-index: 1;
}

.auth-tab.active {
    color: #fff;
}

.auth-tab-indicator {
    position: absolute;
    top: 4px;
    bottom: 4px;
    width: calc(50% - 4px);
    background: var(--auth-accent);
    border-radius: 9px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-tab-indicator.right {
    transform: translateX(100%);
}


.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 0 24px 28px;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #bbb;
    pointer-events: none;
    transition: color 0.2s;
}

.auth-input {
    width: 100%;
    padding: 14px 14px 14px 42px;
    background: #f8fafc;
    border: 2px solid #edf2f7;
    border-radius: 14px;
    font-size: 15px;
    color: #2c3e50;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box;
}

.auth-input::placeholder {
    color: #b2bec3;
}

.auth-input:focus {
    border-color: var(--auth-accent);
    background: #fff;
}

.auth-input-wrap:focus-within .auth-input-icon {
    color: var(--auth-accent);
}

.auth-submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--auth-accent);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.1s, opacity 0.2s;
    margin-top: 4px;
    letter-spacing: 1px;
}

.auth-submit-btn:hover {
    opacity: 0.88;
}

.auth-submit-btn:active {
    transform: scale(0.97);
}

.auth-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.auth-hint {
    font-size: 13px;
    color: #e74c3c;
    text-align: center;
    margin: 2px 0 0;
    min-height: 18px;
    transition: opacity 0.2s;
}


.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0;
}

.auth-divider-line {
    flex: 1;
    height: 1px;
    background: #e8ecf0;
}

.auth-divider-text {
    font-size: 12px;
    color: #b2bec3;
    white-space: nowrap;
}


.auth-footer-hint {
    text-align: center;
    font-size: 12px;
    color: #b2bec3;
    margin: 0;
    line-height: 1.6;
}
.auth-footer-hint a,.auth-terms-check a{color:var(--auth-accent);text-decoration:none;font-weight:600}
.auth-terms-check{display:flex;align-items:flex-start;gap:8px;color:#636e72;font-size:12px;line-height:1.55;text-align:left}
.auth-terms-check input{width:17px;height:17px;flex:0 0 17px;margin-top:1px;accent-color:var(--auth-accent)}


.vip-modal-card {
    background: #fff;
    width: 90%;
    max-width: 380px;
    border-radius: 24px;
    padding: 0;
    box-shadow: 0 24px 80px rgba(0,0,0,0.18), 0 0 0 2px var(--auth-accent);
    max-height: 85vh;
    overflow: hidden;
    position: relative;
}

.vip-modal-body {
    text-align: center;
    padding: 32px 24px 28px;
}

.vip-brand-logo {
    width: 72px;
    height: 72px;
    margin: 0 auto 14px;
    background: linear-gradient(135deg, #f39c12, var(--auth-accent));
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    position: relative;
    overflow: hidden;
}

.vip-brand-logo::after {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: rotate(45deg);
    animation: auth-logo-shine 6s infinite;
}

.vip-status {
    font-size: 17px;
    color: #2c3e50;
    margin: 12px 0 8px;
    font-weight: 600;
}

.vip-expire {
    font-size: 13px;
    color: #999;
    margin: 0 0 20px;
}

.vip-benefits {
    margin: 16px 0 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vip-benefit-item {
    padding: 12px 16px;
    font-size: 14px;
    color: #555;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #edf2f7;
}

.vip-benefit-item .check {
    color: #f39c12;
    font-weight: 700;
    margin-right: 8px;
}

#vip-activate-code {
    width: 100%;
    padding: 14px;
    background: #f8fafc;
    border: 2px solid #edf2f7;
    border-radius: 14px;
    font-size: 15px;
    color: #2c3e50;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    text-align: center;
    letter-spacing: 2px;
}

#vip-activate-code::placeholder {
    color: #b2bec3;
    letter-spacing: 0;
}

#vip-activate-code:focus {
    border-color: var(--auth-accent);
}


@media (max-width: 400px) {
    .auth-modal-card,
    .vip-modal-card {
        width: 94%;
        border-radius: 20px;
    }
    .auth-brand-area {
        padding: 26px 20px 16px;
    }
    .auth-form {
        padding: 0 20px 24px;
    }
}


@media (prefers-reduced-motion: reduce) {
    .auth-brand-logo svg,
    .auth-brand-logo::after,
    .vip-brand-logo::after {
        animation: none;
    }
    .auth-tab-indicator {
        transition: none;
    }
}
