  /* ----- global reset & variables ----- */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    :root {
      --ivory: #faf7f2;
      --charcoal: #2c2c2c;
      --gold: #b79b5b;
      --gold-light: #e5d9cc;
      --graphite: #4a4a4a;
      --cream: #f8f5f0;
      --bone: #e8e3db;
      --white: #ffffff;
      --shadow-sm: 0 8px 30px rgba(0, 0, 0, 0.05);
      --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.08);
    }

    body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
      background-color: var(--ivory);
      color: var(--charcoal);
      line-height: 1.5;
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    /* ----- main card (redesigned structure) ----- */
    .login-card {
      display: flex;
      max-width: 1120px;
      width: 100%;
      min-height: 640px;
      background: var(--white);
      border-radius: 32px;
      box-shadow: var(--shadow-lg);
      overflow: hidden;
      margin: 1.5rem;
      transition: box-shadow 0.25s ease;
    }

    /* ----- left brand panel (reimagined) ----- */
    .brand-panel {
      flex: 1 1 48%;
      position: relative;
      background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 600 800" width="600" height="800"><rect width="600" height="800" fill="%232c2c2c"/><circle cx="300" cy="400" r="280" fill="%23b79b5b" opacity="0.08"/><circle cx="200" cy="250" r="120" fill="%23b79b5b" opacity="0.05"/><circle cx="450" cy="600" r="180" fill="%23b79b5b" opacity="0.04"/><path d="M150 200 L220 130 L290 200 L220 270 L150 200" stroke="%23b79b5b" stroke-width="1.5" fill="none" opacity="0.25"/><path d="M380 520 L450 450 L520 520 L450 590 L380 520" stroke="%23b79b5b" stroke-width="1.5" fill="none" opacity="0.2"/></svg>') no-repeat center center / cover;
      background-color: var(--charcoal);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 2.5rem 2rem;
    }

    .brand-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(145deg, rgba(44,44,44,0.7) 0%, rgba(44,44,44,0.4) 60%, rgba(44,44,44,0.7) 100%);
      backdrop-filter: blur(1px);
    }

    .brand-content {
      position: relative;
      z-index: 2;
      text-align: center;
      color: var(--white);
      max-width: 380px;
      padding: 0.5rem;
    }

    .brand-logo {
      width: 88px;
      height: 88px;
      object-fit: contain;
      border-radius: 50%;
      border: 2px solid rgba(183, 155, 91, 0.5);
      background: rgba(255, 255, 255, 0.04);
      padding: 8px;
      margin-bottom: 1.8rem;
      box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    }

    .brand-title {
      font-family: 'Playfair Display', Georgia, serif;
      font-size: 3.2rem;
      font-weight: 600;
      letter-spacing: 0.02em;
      margin-bottom: 0.4rem;
      color: var(--white);
      text-shadow: 0 2px 12px rgba(0,0,0,0.2);
    }

    .brand-tagline {
      font-size: 1.05rem;
      font-weight: 300;
      color: rgba(255, 255, 255, 0.8);
      letter-spacing: 0.01em;
      margin-bottom: 1.8rem;
    }

    .brand-divider {
      width: 70px;
      height: 2px;
      background: var(--gold);
      margin: 0 auto 1.8rem auto;
      opacity: 0.7;
      border-radius: 4px;
    }

    .brand-quote {
      font-family: 'Playfair Display', Georgia, serif;
      font-size: 1rem;
      font-style: italic;
      color: rgba(255, 255, 255, 0.55);
      line-height: 1.6;
      letter-spacing: 0.01em;
    }

    /* ----- right login panel (refreshed) ----- */
    .login-panel {
      flex: 0 0 420px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 2.8rem 2.8rem 2.8rem 2.8rem;
      background: var(--white);
    }

    .login-box {
      width: 100%;
      max-width: 360px;
      margin: 0 auto;
    }

    .login-header {
      margin-bottom: 2rem;
    }

    .welcome-text {
      font-size: 0.8rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.15em;
      color: var(--gold);
      margin-bottom: 0.4rem;
    }

    .login-title {
      font-family: 'Playfair Display', Georgia, serif;
      font-size: 2rem;
      font-weight: 600;
      color: var(--charcoal);
      line-height: 1.2;
    }

    .login-sub {
      font-size: 0.95rem;
      color: var(--graphite);
      opacity: 0.7;
      margin-top: 0.3rem;
    }

    .divider {
      display: flex;
      align-items: center;
      margin: 2rem 0 1.8rem 0;
      color: var(--graphite);
      font-size: 0.75rem;
      font-weight: 500;
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }

    .divider::before,
    .divider::after {
      content: '';
      flex: 1;
      height: 1px;
      background: var(--bone);
    }

    .divider span {
      padding: 0 1rem;
      color: var(--graphite);
      opacity: 0.5;
    }

    /* Google button wrapper – refined */
    .g_id_signin {
      display: flex;
      justify-content: center;
      margin: 0.5rem 0 0.2rem 0;
    }

    #g_id_onload {
      display: none;
    }

    /* extra micro copy */
    .login-footer {
      margin-top: 2.2rem;
      text-align: center;
    }

    .login-footer p {
      font-size: 0.75rem;
      color: var(--graphite);
      opacity: 0.55;
      line-height: 1.6;
    }

    .login-footer a {
      color: var(--charcoal);
      text-decoration: none;
      font-weight: 500;
      border-bottom: 1px solid transparent;
      transition: border-color 0.2s, color 0.2s;
    }

    .login-footer a:hover {
      border-bottom-color: var(--gold);
      color: var(--gold);
    }

    /* small decorative line */
    .brand-badge {
      display: inline-block;
      background: rgba(183, 155, 91, 0.15);
      padding: 0.3rem 1rem;
      border-radius: 40px;
      font-size: 0.7rem;
      letter-spacing: 0.1em;
      color: var(--gold-light);
      margin-top: 1.2rem;
      border: 1px solid rgba(183, 155, 91, 0.2);
      backdrop-filter: blur(2px);
    }

    /* ----- responsive redesign ----- */
    @media (max-width: 820px) {
      .login-card {
        flex-direction: column;
        max-width: 480px;
        min-height: auto;
        border-radius: 28px;
        margin: 1rem;
      }

      .brand-panel {
        flex: 0 0 auto;
        min-height: 240px;
        padding: 2rem 1.5rem;
        background-position: top center;
      }

      .brand-content {
        max-width: 100%;
      }

      .brand-logo {
        width: 68px;
        height: 68px;
        margin-bottom: 1rem;
      }

      .brand-title {
        font-size: 2.6rem;
      }

      .brand-tagline {
        font-size: 0.95rem;
        margin-bottom: 0.8rem;
      }

      .brand-divider {
        margin: 1rem auto;
        width: 50px;
      }

      .brand-quote {
        font-size: 0.9rem;
      }

      .login-panel {
        flex: 1;
        padding: 2.2rem 1.8rem;
        background: var(--white);
      }

      .login-box {
        max-width: 100%;
      }
    }

    @media (max-width: 440px) {
      .login-card {
        border-radius: 20px;
        margin: 0.75rem;
      }

      .brand-panel {
        min-height: 200px;
        padding: 1.2rem;
      }

      .brand-title {
        font-size: 2.2rem;
      }

      .login-panel {
        padding: 1.8rem 1.2rem;
      }

      .login-title {
        font-size: 1.6rem;
      }

      .brand-logo {
        width: 56px;
        height: 56px;
        padding: 4px;
      }
    }