/* ========================================
   会员前端 - 登录/注册/会员中心
   设计风格: 简洁现代工业风
   ======================================== */

/* ----- Reset & Base ----- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #f0f2f5;
    color: #1a1d23;
    min-height: 100vh;
    line-height: 1.6;
}

/* ----- Header ----- */
.front-header {
    background: #1a1d23;
    color: #fff;
    padding: 0 32px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.front-header .logo {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
}
.front-header .logo a {
    color: #fff;
    text-decoration: none;
}
.front-header .header-nav a {
    color: #b0b5c0;
    text-decoration: none;
    margin-left: 24px;
    font-size: 14px;
    transition: color 0.2s;
}
.front-header .header-nav a:hover { color: #fff; }

/* ----- Container ----- */
.front-container {
    max-width: 440px;
    margin: 60px auto;
    padding: 0 20px;
}

/* ----- Card ----- */
.front-card {
    background: #fff;
    border-radius: 8px;
    padding: 40px 36px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
}
.front-card h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    text-align: center;
}
.front-card .card-subtitle {
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 28px;
}

/* ----- Form ----- */
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}
.form-group input {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: #1a1d23;
    background: #f9fafb;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.form-group input:focus {
    border-color: #1a1d23;
    box-shadow: 0 0 0 3px rgba(26,29,35,0.1);
    background: #fff;
}

/* ----- Buttons ----- */
.btn {
    display: inline-block;
    padding: 0 20px;
    height: 42px;
    line-height: 42px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s, opacity 0.2s;
}
.btn-primary {
    background: #1a1d23;
    color: #fff;
    width: 100%;
}
.btn-primary:hover { background: #2d3039; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-outline {
    background: #fff;
    color: #1a1d23;
    border: 1px solid #d1d5db;
    width: 100%;
}
.btn-outline:hover { background: #f3f4f6; }

/* ----- Alert ----- */
.alert {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 18px;
}
.alert-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }

/* ----- Footer links ----- */
.form-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #6b7280;
}
.form-footer a {
    color: #1a1d23;
    font-weight: 600;
    text-decoration: none;
}
.form-footer a:hover { text-decoration: underline; }

/* ----- Home Page ----- */
.home-hero {
    text-align: center;
    padding: 80px 20px;
}
.home-hero h1 {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 12px;
}
.home-hero p {
    color: #6b7280;
    font-size: 16px;
    margin-bottom: 36px;
}
.home-hero .btn-group {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.home-hero .btn-group .btn {
    width: auto;
    min-width: 140px;
}

/* ----- Member Dashboard ----- */
.member-dashboard {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}
.member-dashboard h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
}
.member-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}
.member-card {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.member-card .card-label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.member-card .card-value {
    font-size: 26px;
    font-weight: 700;
    color: #1a1d23;
}
.member-card .card-value.small {
    font-size: 18px;
}