/* 弹窗框体 */
.popup {
    width: 90%;
    max-width: 400px;
    min-height: 300px;
    max-height: 80%;
    border-radius: 12px;
    margin: 0 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    background-color: #fff;
    position: relative;
}

.pop-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.8); /* 半透明背景 */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 19;
}

/* 转圈动画样式 */
.pop-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #ddd; /* 外环 */
    border-top: 5px solid #3498db; /* 转圈的颜色 */
    border-radius: 50%;
    animation: spinn 1s linear infinite; /* 无限旋转 */
}

/* 定义旋转动画 */
@keyframes spinn {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.popup .content {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    font-family: sans-serif;
    color: #222;
}

  
/* 标题栏 */
.popup .header {
    position: relative;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #ddd;
    font-weight: bold;
}

/* 关闭按钮 */
.popup .close {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    margin-right: 8px;
}

.popup .title {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    pointer-events: none; /* 避免遮挡事件 */
}
  
/* 正文 */
.popup .body {
    flex: 1;
    margin: 12px 0;
    font-size: 18px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
}

.popup .info-list {
    display: grid;
    grid-template-columns: 100px 1fr;
    row-gap: 10px;
    font-family: sans-serif;
}

.popup .info-list .label {
    font-weight: bold;
    color: #555;
}
.popup .info-list .value {
    color: #333;
}

.popup .auth-page {
    padding: 0 16px;
    box-sizing: border-box; /* 避免 padding 撑破宽度 */
}

.popup .auth-page .form-group {
    margin-bottom: 15px;
    width: 100%;
}

.popup .auth-page label {
    display: block;
    margin-bottom: 5px;
    color: #555;
}

.popup .auth-page input[type="text"],
.popup .auth-page input[type="email"],
.popup .auth-page input[type="password"] {
    width: 100%;
    padding: 10px;
    background: #f4f4f4;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.popup .auth-page button {
    width: 100%;
    padding: 10px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 16px;
}

.popup .auth-page .register-btn {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 8px 0;
    color: #007BFF;
    font-size: 14px;
}

.popup .auth-page .error-message {
    color: #dc3545;
    font-size: 12px;
    display: block;
    margin-top: 5px;
}