:root {
    --ink: #10233f;
    --muted: #5c6b82;
    --line: #dbe4f0;
    --surface: rgba(255, 255, 255, 0.9);
    --surface-strong: #ffffff;
    --primary: #1848b8;
    --primary-strong: #12398f;
    --primary-soft: #eaf1ff;
    --accent: #f59e0b;
    --success: #0f9f6e;
    --danger: #dc2626;
    --shadow-lg: 0 24px 70px rgba(15, 23, 42, 0.16);
    --shadow-md: 0 14px 34px rgba(15, 23, 42, 0.1);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
}

.landing-page,
.auth-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(96, 165, 250, 0.28), transparent 30%),
        radial-gradient(circle at bottom right, rgba(251, 191, 36, 0.18), transparent 28%),
        linear-gradient(135deg, #eef5ff 0%, #dfeaff 48%, #f8fbff 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    font-family: "Microsoft YaHei", Arial, sans-serif;
}

.logo-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-strong), var(--primary));
    border-radius: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    color: white;
    box-shadow: 0 12px 28px rgba(24, 72, 184, 0.22);
}

.btn {
    display: inline-block;
    border: none;
    background: linear-gradient(135deg, var(--primary-strong), var(--primary));
    color: white;
    text-decoration: none;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 12px 24px rgba(24, 72, 184, 0.22);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(24, 72, 184, 0.28);
}

.landing-page .container {
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
    gap: 28px;
    align-items: stretch;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.landing-page .hero-panel,
.landing-page .feature-panel,
.auth-page .container {
    background: var(--surface);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow-lg);
}

.landing-page .hero-panel {
    padding: 48px;
    border-radius: var(--radius-xl);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.landing-page .eyebrow {
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}

.landing-page .logo {
    margin-bottom: 28px;
}

.landing-page .logo h1 {
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.18;
    color: var(--ink);
}

.landing-page .logo p {
    max-width: 520px;
    margin-top: 14px;
    color: var(--muted);
    line-height: 1.8;
}

.landing-page .logo-icon {
    margin: 0 0 22px;
}

.landing-page .cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.landing-page .btn {
    padding: 15px 28px;
}

.landing-page .btn-secondary {
    color: var(--primary);
    background: var(--primary-soft);
    box-shadow: none;
}

.landing-page .feature-panel {
    border-radius: var(--radius-xl);
    padding: 28px;
    display: grid;
    align-content: center;
}

.landing-page .features {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.landing-page .feature {
    max-width: none;
    padding: 18px;
    border-radius: var(--radius-lg);
    text-align: left;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(219, 228, 240, 0.9);
}

.landing-page .feature-icon {
    margin-bottom: 12px;
}

.landing-page .feature-title {
    color: var(--ink);
    font-weight: 700;
}

.landing-page .feature-copy {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
    margin-top: 6px;
}

.auth-page .container {
    max-width: 980px;
    padding: 0;
    overflow: hidden;
    border-radius: var(--radius-xl);
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
}

.auth-page .brand-panel {
    padding: 42px;
    background:
        linear-gradient(160deg, rgba(18, 57, 143, 0.98), rgba(24, 72, 184, 0.96)),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 30%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auth-page .brand-panel h1,
.auth-page .brand-panel p {
    color: white;
}

.auth-page .brand-copy {
    line-height: 1.9;
    opacity: 0.88;
}

.auth-page .brand-list {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}

.auth-page .brand-list div {
    display: flex;
    gap: 10px;
    align-items: center;
    opacity: 0.94;
}

.auth-page .form-panel {
    padding: 38px;
    background: rgba(255, 255, 255, 0.96);
}

.auth-page .logo {
    text-align: left;
    margin-bottom: 24px;
}

.auth-page .logo-icon {
    margin: 0 0 18px;
}

.auth-page .tabs {
    padding: 6px;
    background: #f3f6fb;
    border: none;
    border-radius: 999px;
}

.auth-page .tab {
    border: none;
    border-radius: 999px;
}

.auth-page .tab.active {
    background: white;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.auth-page .form-group input,
.auth-page .form-group select {
    border-color: var(--line);
    border-radius: 12px;
}

.auth-page .btn {
    border-radius: 12px;
}

.dashboard-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 24%),
        linear-gradient(180deg, #f8fbff 0%, #eef3f9 100%);
}

.dashboard-page header {
    padding: 18px clamp(18px, 4vw, 34px);
    background: rgba(14, 42, 103, 0.94);
    backdrop-filter: blur(10px);
}

.dashboard-page header h1 {
    font-size: 20px;
}

.dashboard-page header button {
    border-radius: 999px;
    padding: 9px 16px;
}

.dashboard-page .container {
    max-width: 1280px;
    margin: 28px auto;
    padding: 0 20px 30px;
}

.dashboard-page .notice,
.dashboard-page .tabs,
.dashboard-page .content,
.dashboard-page .stat-card {
    border: 1px solid rgba(219, 228, 240, 0.95);
    box-shadow: var(--shadow-md);
}

.dashboard-page .tabs {
    padding: 7px;
    border-radius: 999px;
    gap: 8px;
}

.dashboard-page .tab-btn {
    border-radius: 999px;
    font-weight: 700;
}

.dashboard-page .content {
    border-radius: var(--radius-lg);
    padding: 24px;
}

.dashboard-page #form-tab.content {
    border: 0;
    box-shadow: none;
}

.dashboard-page .btn,
.dashboard-page .modal-buttons .submit,
.dashboard-page .event-actions button,
.dashboard-page .role-actions button {
    border-radius: 999px;
}

.dashboard-page .stats {
    margin-top: 0;
}

.dashboard-page .stat-card {
    border-radius: var(--radius-lg);
}

.dashboard-page table {
    overflow: hidden;
    border-radius: 14px;
}

.dashboard-page th {
    background: #f3f7fd;
    color: #334155;
}

.dashboard-page tr:hover td {
    background: #fbfdff;
}

.dashboard-page .modal-content {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.dashboard-page .form-group input,
.dashboard-page .form-group select,
.dashboard-page .checkbox-list,
.dashboard-page .photo-upload {
    border-radius: 12px;
}

  @media (max-width: 860px) {
      .landing-page .container,
      .auth-page .container {
          grid-template-columns: 1fr;
      }

      .landing-page .hero-panel,
      .landing-page .feature-panel,
      .auth-page .brand-panel,
      .auth-page .form-panel {
          padding: 28px;
      }

      .auth-page .brand-panel {
          display: none;
      }

    .landing-page .features {
        grid-template-columns: 1fr;
    }

    .dashboard-page .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .dashboard-page .container {
        padding: 0 14px 24px;
    }

    .dashboard-page header {
        align-items: flex-start;
        gap: 12px;
        flex-direction: column;
    }

    .dashboard-page .tabs {
        border-radius: 18px;
        flex-direction: column;
    }

    .dashboard-page .stats {
        grid-template-columns: 1fr;
    }
}
