/* Original Calendar styling: services/calendar/web/login.html */
:root {
      color-scheme: dark;
      --bg: #0f172a;
      --panel: rgba(15,23,42,.94);
      --line: rgba(148,163,184,.22);
      --text: #e5e7eb;
      --muted: #94a3b8;
      --accent: #38bdf8;
      --danger: #fb7185;
    }

    * { box-sizing: border-box; }

    body {
      margin: 0;
      min-height: 100vh;
      display: grid;
      place-items: center;
      padding: 18px;
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background:
        radial-gradient(circle at top left, rgba(59,130,246,.18), transparent 34%),
        radial-gradient(circle at bottom right, rgba(16,185,129,.12), transparent 30%),
        var(--bg);
      color: var(--text);
    }

    .card {
      width: min(430px, 100%);
      padding: 24px;
      border: 1px solid var(--line);
      border-radius: 24px;
      background: var(--panel);
      box-shadow: 0 24px 80px rgba(0,0,0,.32);
    }

    .logo {
      display: block;
      width: 160px;
      height: auto;
      margin-bottom: 22px;
    }

    h1 {
      margin: 0 0 6px;
      font-size: 28px;
      letter-spacing: -.04em;
    }

    .subtitle {
      color: var(--muted);
      font-size: 14px;
      line-height: 1.45;
      margin-bottom: 20px;
    }

    label {
      display: grid;
      gap: 7px;
      margin-bottom: 14px;
      color: #bfdbfe;
      font-weight: 800;
      font-size: 13px;
    }

    input {
      width: 100%;
      border: 1px solid rgba(148,163,184,.25);
      border-radius: 14px;
      background: rgba(15,23,42,.78);
      color: var(--text);
      padding: 12px 13px;
      outline: none;
      font-size: 15px;
    }

    input:focus {
      border-color: rgba(56,189,248,.55);
      box-shadow: 0 0 0 3px rgba(56,189,248,.12);
    }

    button {
      width: 100%;
      border: 1px solid rgba(56,189,248,.38);
      border-radius: 14px;
      background: rgba(14,165,233,.22);
      color: #e0f2fe;
      padding: 12px 14px;
      font-weight: 950;
      cursor: pointer;
      margin-top: 4px;
    }

    .error {
      display: none;
      margin-bottom: 14px;
      color: #fecaca;
      background: rgba(239,68,68,.12);
      border: 1px solid rgba(248,113,113,.25);
      border-radius: 14px;
      padding: 10px 12px;
      font-size: 13px;
      font-weight: 800;
    }

    .error.visible { display: block; }
