/* 登录注册弹窗样式 */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 5000;
    justify-content: center;
    align-items: center;
}

.auth-modal.active {
    display: flex;
}

.auth-modal-content {
    background: linear-gradient(135deg, rgba(0, 5, 17, 0.95), rgba(10, 20, 40, 0.95));
    border: 2px solid #4a9eff;
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 50px rgba(74, 158, 255, 0.5);
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #aaa;
    cursor: pointer;
    transition: all 0.3s;
    background: none;
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-modal-close:hover {
    color: #fff;
    transform: rotate(90deg);
}

.auth-modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-modal-title {
    font-size: 28px;
    color: #4a9eff;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(74, 158, 255, 0.5);
}

.auth-modal-subtitle {
    color: #aaa;
    font-size: 14px;
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 5px;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 16px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
}

.auth-tab.active {
    background: #4a9eff;
    color: white;
    box-shadow: 0 0 15px rgba(74, 158, 255, 0.6);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-input-group {
    margin-bottom: 20px;
}

.auth-input-label {
    display: block;
    color: #4a9eff;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 500;
}

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

.auth-input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #4a9eff;
    font-size: 18px;
}

.auth-input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(74, 158, 255, 0.3);
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    transition: all 0.3s;
}

.auth-input:focus {
    outline: none;
    border-color: #4a9eff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(74, 158, 255, 0.3);
}

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

.auth-submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #4a9eff, #3a8eef);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.auth-submit-btn:hover {
    background: linear-gradient(135deg, #3a8eef, #2a7edf);
    box-shadow: 0 5px 20px rgba(74, 158, 255, 0.6);
    transform: translateY(-2px);
}

.auth-submit-btn:active {
    transform: translateY(0);
}

.auth-divider {
    text-align: center;
    margin: 20px 0;
    color: #666;
    font-size: 14px;
    position: relative;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: rgba(74, 158, 255, 0.2);
}

.auth-divider::before {
    left: 0;
}

.auth-divider::after {
    right: 0;
}

.auth-info {
    text-align: center;
    color: #aaa;
    font-size: 13px;
    margin-top: 20px;
}

.error-message {
    background: rgba(255, 102, 102, 0.1);
    border: 1px solid #ff6666;
    border-radius: 8px;
    padding: 12px;
    color: #ff8888;
    font-size: 14px;
    margin-bottom: 15px;
    display: none;
}

.error-message.show {
    display: block;
    animation: shake 0.3s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.success-message {
    background: rgba(68, 255, 136, 0.1);
    border: 1px solid #44ff88;
    border-radius: 8px;
    padding: 12px;
    color: #66ffaa;
    font-size: 14px;
    margin-bottom: 15px;
    display: none;
}

.success-message.show {
    display: block;
}

.auth-select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding-right: 36px;
    background-image: linear-gradient(45deg, transparent 50%, #4a9eff 50%),
                      linear-gradient(135deg, #4a9eff 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.auth-select option {
    background: #0a1428;
    color: #fff;
}

.auth-address-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

.auth-address-row .auth-select {
    padding-left: 12px;
    font-size: 13px;
}

@media (max-width: 560px) {
    .auth-address-row {
        grid-template-columns: 1fr;
    }
}
