/* Register Page Styles */

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 页面主体 */
body {
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    color: #fff;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* 容器 */
.container {
    width: 100%;
    max-width: 500px;
}

/* 网站头部 */
.site-header {
    text-align: center;
    margin-bottom: 2.5rem;
    animation: slideDown 0.6s ease-out;
}

.site-logo {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.site-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #fff, #c0a96e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-subtitle {
    font-size: 0.95rem;
    color: #8899aa;
    margin-bottom: 0.5rem;
}

.site-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #c0a96e, transparent);
    margin: 1.5rem auto;
}

/* 注册卡片 */
.register-card {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(192, 169, 110, 0.2);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    animation: slideUp 0.6s ease-out;
}

/* 卡片头部 */
.header {
    text-align: center;
    margin-bottom: 2rem;
}

.header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
    color: #fff;
}

.header p {
    color: #999;
    font-size: 0.9rem;
}

/* 表单组 */
.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    color: #bbb;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #c0a96e;
    background: rgba(10, 10, 10, 0.8);
    box-shadow: 0 0 0 2px rgba(192, 169, 110, 0.1);
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
    font-family: inherit;
}

.form-group .hint {
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.3rem;
}

/* 按钮 */
.btn {
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(135deg, #c0a96e, #d4b978);
    color: #000;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 0.5rem;
}

.btn:hover {
    background: linear-gradient(135deg, #d4b978, #e0c89e);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(192, 169, 110, 0.3);
}

.btn:active {
    transform: translateY(0);
}

/* 错误消息 */
.error-message {
    background: rgba(255, 68, 68, 0.08);
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    animation: slideDown 0.3s ease-out;
}

.error-message h3 {
    color: #ff7777;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.error-message ul {
    list-style: none;
    padding-left: 0;
}

.error-message li {
    color: #ff9999;
    font-size: 0.85rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.4;
    margin-bottom: 0.3rem;
}

.error-message li::before {
    content: '⚠';
    position: absolute;
    left: 0;
    font-size: 0.8rem;
}

/* 登录链接 */
.login-link {
    text-align: center;
    margin-top: 1.5rem;
    color: #999;
    font-size: 0.9rem;
}

.login-link a {
    color: #c0a96e;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.login-link a:hover {
    color: #d4b978;
    text-decoration: underline;
}

/* 动画 */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式 */
@media (max-width: 600px) {
    .site-header {
        margin-bottom: 2rem;
    }

    .site-logo {
        font-size: 2.5rem;
    }

    .site-title {
        font-size: 1.4rem;
    }

    .register-card {
        padding: 1.8rem 1.2rem;
        border-radius: 12px;
    }

    .header h1 {
        font-size: 1.3rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.65rem 0.8rem;
        font-size: 16px;
    }

    .form-group textarea {
        min-height: 70px;
    }
}

@media (max-width: 400px) {
    .site-logo {
        font-size: 2rem;
    }

    .site-title {
        font-size: 1.2rem;
    }

    .register-card {
        padding: 1.5rem 1rem;
    }

    .header h1 {
        font-size: 1.1rem;
    }
}
