/* Extracted from login.html */
:root {
      --bg-1: #f7f3ed;
      --bg-2: #efe7dc;
      --panel: #ffffff;
      --line: #e2d8ca;
      --text-main: #2f2a24;
      --text-sub: #7a6d60;
      --accent: #8b6a4c;
      --accent-dark: #75573d;
      --brand-1: #6f553d;
      --brand-2: #9d7d5a;
      --danger-bg: #fff1f1;
      --danger-text: #b23a3a;
      --ok-bg: #eef8f0;
      --ok-text: #2d6f41;
      --info-bg: #eef4ff;
      --info-text: #2f5fa8;
      --shadow: 0 20px 50px rgba(80, 61, 39, 0.12);
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      min-height: 100vh;
      font-family:
              "Hiragino Sans",
              "Yu Gothic",
              "Meiryo",
              "Segoe UI",
              Arial,
              sans-serif;
      color: var(--text-main);
      background:
              radial-gradient(circle at top left, rgba(255,255,255,0.8), transparent 35%),
              linear-gradient(135deg, var(--bg-1), var(--bg-2));
    }

    .page {
      min-height: 100vh;
      display: grid;
      grid-template-columns: 1.05fr 0.95fr;
      gap: 32px;
      align-items: center;
      max-width: 1200px;
      margin: 0 auto;
      padding: 36px 24px;
    }

    .brand-panel {
      border-radius: 28px;
      padding: 42px 36px;
      min-height: 680px;
      color: #fff;
      background:
              radial-gradient(circle at top right, rgba(255,255,255,0.12), transparent 28%),
              linear-gradient(145deg, var(--brand-1), var(--brand-2));
      box-shadow: var(--shadow);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .badge {
      display: inline-block;
      padding: 8px 14px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,0.2);
      background: rgba(255,255,255,0.1);
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 0.04em;
      margin-bottom: 24px;
    }

    .brand-title {
      font-size: 56px;
      line-height: 1.22;
      font-weight: 800;
      margin: 0 0 18px;
    }

    .brand-desc {
      font-size: 15px;
      line-height: 1.9;
      color: rgba(255,255,255,0.88);
      max-width: 520px;
      margin: 0 0 28px;
    }

    .feature {
      background: rgba(255,255,255,0.10);
      border: 1px solid rgba(255,255,255,0.12);
      border-radius: 18px;
      padding: 18px 20px;
      margin-bottom: 14px;
    }

    .feature strong {
      display: block;
      font-size: 18px;
      margin-bottom: 8px;
    }

    .feature span {
      display: block;
      font-size: 14px;
      line-height: 1.8;
      color: rgba(255,255,255,0.84);
    }

    .brand-footer {
      margin-top: 18px;
      font-size: 13px;
      color: rgba(255,255,255,0.75);
      letter-spacing: 0.05em;
    }

    .login-panel {
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .login-card {
      width: 100%;
      max-width: 470px;
      background: rgba(255,255,255,0.92);
      border: 1px solid rgba(160,130,96,0.15);
      border-radius: 28px;
      padding: 34px 30px 28px;
      box-shadow: var(--shadow);
      backdrop-filter: blur(10px);
    }

    .login-kicker {
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 0.08em;
      color: var(--accent);
      margin-bottom: 12px;
    }

    .login-title {
      margin: 0;
      font-size: 28px;
      font-weight: 800;
      color: var(--text-main);
    }

    .login-subtitle {
      margin: 12px 0 24px;
      font-size: 14px;
      line-height: 1.8;
      color: var(--text-sub);
    }

    .msg {
      border-radius: 14px;
      padding: 12px 14px;
      font-size: 14px;
      margin-bottom: 16px;
      line-height: 1.6;
    }

    .msg.error {
      background: var(--danger-bg);
      color: var(--danger-text);
      border: 1px solid rgba(178,58,58,0.15);
    }

    .msg.success {
      background: var(--ok-bg);
      color: var(--ok-text);
      border: 1px solid rgba(45,111,65,0.15);
    }

    .msg.info {
      background: var(--info-bg);
      color: var(--info-text);
      border: 1px solid rgba(47,95,168,0.15);
    }

    form {
      display: block;
      width: 100%;
    }

    .form-group {
      margin-bottom: 18px;
    }

    .form-label {
      display: block;
      font-size: 13px;
      font-weight: 700;
      color: #5c5044;
      margin-bottom: 8px;
      letter-spacing: 0.04em;
    }

    .input-wrap {
      position: relative;
    }

    .form-input {
      display: block;
      width: 100%;
      height: 50px;
      padding: 0 14px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: #fff;
      font-size: 15px;
      color: var(--text-main);
      outline: none;
      appearance: none;
    }

    .form-input:focus {
      border-color: rgba(139,106,76,0.75);
      box-shadow: 0 0 0 4px rgba(139,106,76,0.10);
    }

    .password-input {
      padding-right: 74px;
    }

    .toggle-password {
      position: absolute;
      right: 10px;
      top: 50%;
      transform: translateY(-50%);
      border: none;
      background: transparent;
      color: var(--accent);
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
      padding: 6px 8px;
    }

    .submit-btn {
      width: 100%;
      height: 52px;
      border: none;
      border-radius: 14px;
      background: linear-gradient(135deg, var(--accent), #a6805b);
      color: #fff;
      font-size: 16px;
      font-weight: 800;
      letter-spacing: 0.04em;
      cursor: pointer;
      margin-top: 6px;
    }

    .submit-btn:hover {
      background: linear-gradient(135deg, var(--accent-dark), #906d4c);
    }

    .login-footer {
      margin-top: 16px;
      text-align: center;
      font-size: 12px;
      color: #8a7c6e;
    }

    @media (max-width: 920px) {
      .page {
        grid-template-columns: 1fr;
        max-width: 560px;
      }

      .brand-panel {
        min-height: auto;
      }

      .brand-title {
        font-size: 40px;
      }
    }

    @media (max-width: 520px) {
      .page {
        padding: 16px;
      }

      .brand-panel,
      .login-card {
        border-radius: 22px;
      }

      .login-card {
        padding: 26px 18px 22px;
      }

      .brand-title {
        font-size: 34px;
      }
    }
