/* 简·查笔记 - 现代化登录注册样式 */

/* 全局样式 */
html {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 容器样式 */
.top {
    text-align: center;
    margin-bottom: 20px;
}

.mid {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    width: 400px;
    max-width: 90%;
    margin: 20px;
    text-align: center;
}

.login-logo {
    display: block;
    width: 200px;
    max-width: 70%;
    margin: 0 auto 18px;
}

.head_text {
    color: #333;
    font-size: 32px;
    font-weight: 600;
    margin: 0 0 30px 0;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 表单样式 */
ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

li {
    margin-bottom: 20px;
}

.form-row,
li div {
    position: relative;
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    text-align: left;
}

.form-row-captcha {
    grid-template-columns: 78px auto minmax(0, 1fr);
}

.form-label {
    color: #344054;
    font-size: 14px;
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
}

.input-wrap {
    position: relative;
    display: flex;
    flex: 1;
    min-width: 0;
}

li img,
.input-wrap img {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    opacity: 0.6;
    transition: opacity 0.3s;
    cursor: pointer;
}

li img:hover {
    opacity: 1;
}

/* 输入框样式 */
.input_id {
    width: 100%;
    padding: 14px 45px 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s;
    background: #f8f9fa;
    box-sizing: border-box;
}

.captcha-question {
    padding: 10px 12px;
    border-radius: 8px;
    background: #eef2ff;
    color: #4f46e5;
    font-weight: 600;
    white-space: nowrap;
}

.auth-link {
    display: inline-block;
    margin-top: 6px;
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
}

.auth-link:hover { text-decoration: underline; }

.input_id:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input_id:hover {
    border-color: #764ba2;
}

/* 按钮样式 */
.button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 10px;
}

.button[type="submit"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.button[type="button"] {
    background: #f0f0f0;
    color: #667eea;
    border: 2px solid #667eea;
}

.button[type="button"]:hover {
    background: #667eea;
    color: white;
}

.button[type="reset"] {
    background: #f0f0f0;
    color: #666;
}

.button[type="reset"]:hover {
    background: #e0e0e0;
}

/* 底部样式 */
.foot {
    text-align: center;
    margin-top: 30px;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.8;
    text-shadow: 0 1px 3px rgba(0,0,0,.35);
}

.foot img {
    width: 100px;
    margin-bottom: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.Copyright {
    display: block;
    margin-top: 10px;
}

.foot a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 700;
}

.foot a:hover {
    color: #fef3c7;
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .mid {
        padding: 30px 20px;
        width: 90%;
    }

    .head_text {
        font-size: 26px;
    }

    .input_id {
        padding: 12px 40px 12px 14px;
        font-size: 14px;
    }

    .form-row {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .form-row-captcha {
        grid-template-columns: 72px auto minmax(0, 1fr);
    }

    .form-label {
        font-size: 13px;
    }

    .button {
        padding: 12px;
        font-size: 15px;
    }
}

/* 警告文本样式 */
.warn {
    color: #ff4444;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

/* 注册人数统计（如果启用） */
.register_user {
    display: inline-block;
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.register_user span {
    color: #667eea;
    font-size: 20px;
    font-weight: 600;
}

/* 下载链接（如果保留） */
.info_download {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 10px;
    transition: all 0.3s;
}

.info_download:hover {
    background: rgba(102, 126, 234, 0.2);
    color: #764ba2;
}
