/*
 * AJAX 登录/注册弹窗样式
 * 文件: p3/assets/css/popup-style.css
 */

/* 弹窗遮罩层 */
#ajax-auth-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

/* 弹窗内容容器 */
#ajax-auth-popup .popup-content {
    background-color: #ffffff;
    width: 90%;
    max-width: 400px;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    position: relative;
    text-align: left;
}

/* 关闭按钮 */
#ajax-auth-popup .close-popup {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: #9ca3af;
    text-decoration: none;
    line-height: 1;
    transition: color 0.2s ease;
}
#ajax-auth-popup .close-popup:hover {
    color: #1f2937;
}
#ajax-auth-popup .close-popup::before {
    content: '\00d7'; /* '×' 符号 */
}


/* 登录/注册切换标签 */
#ajax-auth-popup .tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 1px solid #e5e7eb;
}
#ajax-auth-popup .tabs .tab-link {
    padding: 10px 20px;
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}
#ajax-auth-popup .tabs .tab-link.active {
    color: #6366f1; /* 主题紫色 */
    border-bottom-color: #6366f1;
}

/* 表单标题 */
#ajax-auth-popup .form-container h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
}

/* 表单标签 */
#ajax-auth-popup .form-container label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
    font-size: 0.875rem;
}

/* 表单输入框 */
#ajax-auth-popup .form-container input[type="text"],
#ajax-auth-popup .form-container input[type="password"],
#ajax-auth-popup .form-container input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
#ajax-auth-popup .form-container input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
    outline: none;
}

/* 提交按钮 */
#ajax-auth-popup .form-container .submit_button {
    width: 100%;
    padding: 12px;
    background-color: #6366f1;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 10px;
}
#ajax-auth-popup .form-container .submit_button:hover {
    background-color: #4f46e5;
}

/* 状态消息 (如: 处理中..., 用户名错误) */
#ajax-auth-popup .form-container p.status {
    background-color: #f3f4f6;
    color: #4b5563;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 0.875rem;
    text-align: center;
}