    :root {
      --primary: #004aad;
      --accent: #1e90ff;
      --bg-light: #f4f7fb;
      --text-dark: #24365C;
    }

    body {
      margin: 0;
      font-family: "Segoe UI", Arial, sans-serif;
      background: var(--bg-light);
      color: var(--text-dark);
      display: flex;
      flex-direction: column;
      min-height: 100vh;
      overflow-y: auto;
    }

    header {
      text-align: center;
      background: linear-gradient(90deg, var(--primary), var(--accent));
      color: white;
      padding: 18px 10px;
      font-weight: 600;
      letter-spacing: 0.5px;
      font-size: 1.1em;
      z-index: 10;
    }

    main {
      flex: 1;
      display: flex;
      justify-content: center;
      align-items: flex-start;
      padding: 14px 10px 15px; /* ✅ pulled card up and reduced bottom gap */
    }

    .login-card {
      background: white;
      border-radius: 14px;
      box-shadow: 0 4px 18px rgba(0,0,0,0.1);
      width: 100%;
      max-width: 420px;
      text-align: center;
      padding: 28px 25px 20px;
      margin-top: 10px; /* ✅ closer to banner */
      margin-bottom: 10px; /* ✅ reduced blank bottom space */
      display: flex;
      flex-direction: column;
      min-height: 84vh; /* ✅ slightly shorter */
    }

    .logo {
      width: 120px;
      height: 120px;
      margin: 0 auto 10px;
      background: rgba(30,144,255,0.08) url('/img/duraclean.png') center/contain no-repeat;
      border-radius: 50%;
      border: 3px solid var(--primary);
      box-shadow: 0 0 8px rgba(0,0,0,0.1);
    }

    h2 {
      font-size: 1.2em;
      font-weight: 700;
      margin-bottom: 4px;
      color: var(--primary);
    }

    p {
      font-size: 0.9em;
      color: #555;
      margin-bottom: 26px;
    }

    label {
      display: block;
      text-align: left;
      font-weight: 600;
      margin: 12px 0 6px;
      color: var(--text-dark);
    }

    #password {
      margin-top: 18px;
    }

    .checkbox {
      display: flex;
      align-items: center;
      margin-top: 16px;
      font-size: 0.9em;
    }

    .checkbox input {
      margin-right: 6px;
      accent-color: var(--primary);
    }

    input[type="text"], input[type="password"] {
      width: 100%;
      box-sizing: border-box;
      padding: 10px 12px;
      border: 1px solid #ccc;
      border-radius: 6px;
      font-size: 0.95em;
      transition: border-color 0.3s;
    }

    input:focus {
      border-color: var(--accent);
      outline: none;
    }

    button {
      width: 100%;
      background: var(--primary);
      color: white;
      border: none;
      padding: 11px 0;
      border-radius: 6px;
      font-weight: 600;
      font-size: 1em;
      margin-top: 30px;
      cursor: pointer;
      transition: background 0.3s;
    }

    button:hover {
      background: var(--accent);
    }

    .forgot {
      display: block;
      margin-top: 8px;
      font-size: 0.9em;
      color: var(--accent);
      text-decoration: none;
      margin-bottom: 22px;
    }

    .forgot:hover {
      text-decoration: underline;
    }

    footer {
      text-align: center;
      font-size: 0.75em;
      color: #777;
      margin-top: 10px;
      padding-top: 5px;
      border-top: 1px solid #eee;
    }

    @media (max-width: 480px) {
      header { font-size: 1em; padding: 14px; }
      main { padding: 8px 8px 10px; }
      .login-card {
        padding: 24px 18px 18px;
        min-height: 86vh;
      }
      p { margin-bottom: 24px; }
    }