:root {
      --auth-accent: var(--theme-default, #7A70BA);
      --auth-secondary: var(--theme-secondary, #48A3D7);
      --auth-soft: var(--light-shade-primary, #f5f4ff);
      --auth-border: rgba(122, 112, 186, .22);
      --auth-text: #1f2a3d;
      --auth-muted: #6b7280;
      --auth-success: #168a45;
    }

    body {
      font-family: "Outfit", sans-serif;
      background:
        radial-gradient(circle at 12% 12%, color-mix(in srgb, var(--auth-accent) 18%, transparent), transparent 28%),
        radial-gradient(circle at 88% 88%, color-mix(in srgb, var(--auth-secondary) 18%, transparent), transparent 28%),
        #eef2f7;
      min-height: 100vh;
    }

    .auth-page {
      min-height: 100vh;
      padding: 24px;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      overflow: hidden;
    }

    .auth-page::before,
    .auth-page::after {
      content: "";
      position: absolute;
      border-radius: 999px;
      background: color-mix(in srgb, var(--auth-accent) 20%, transparent);
      pointer-events: none;
    }

    .auth-page::before {
      width: 360px;
      height: 360px;
      right: -110px;
      top: -110px;
    }

    .auth-page::after {
      width: 260px;
      height: 260px;
      left: -90px;
      bottom: -90px;
    }

    .auth-shell {
      width: min(1160px, 100%);
      min-height: 660px;
      border-radius: 24px;
      background: #fff;
      box-shadow: 0 24px 70px rgba(31, 42, 61, .16);
      overflow: hidden;
      display: grid;
      grid-template-columns: minmax(390px, 1.05fr) minmax(390px, .95fr);
      position: relative;
      z-index: 1;
    }

    .auth-brand {
      background:
        linear-gradient(135deg, #0b3556, color-mix(in srgb, var(--auth-accent) 48%, #0b3556));
      color: #fff;
      padding: 42px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      min-height: 100%;
      position: relative;
      overflow: hidden;
    }

    .auth-brand::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(180deg, rgba(8, 13, 28, .12) 0%, rgba(8, 13, 28, .38) 42%, rgba(8, 13, 28, .62) 100%),
        linear-gradient(90deg, rgba(8, 13, 28, .32), rgba(8, 13, 28, .08) 52%, rgba(8, 13, 28, .28));
      pointer-events: none;
      z-index: 1;
    }

    .auth-brand::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      top: 0;
      height: 235px;
      background: url("../../images/damtech/familia-damtech-login.webp") center top / 100% auto no-repeat;
      opacity: .34;
      pointer-events: none;
      z-index: 0;
    }

    .auth-brand > * {
      position: relative;
      z-index: 2;
    }

    .auth-brand-logo {
      width: 190px;
      max-width: 80%;
      filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .22));
    }

    .auth-brand h1 {
      color: #fff;
      font-size: clamp(30px, 4vw, 46px);
      line-height: 1.05;
      font-weight: 900;
      margin: 34px 0 12px;
      letter-spacing: 0;
    }

    .auth-brand p {
      color: rgba(255, 255, 255, .85);
      font-size: 16px;
      line-height: 1.5;
      max-width: 420px;
      margin: 0;
    }

    .auth-brand-badges {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 28px;
    }

    .auth-brand-badge {
      border: 1px solid rgba(255, 255, 255, .24);
      border-radius: 999px;
      padding: 8px 12px;
      color: #fff;
      background: rgba(255, 255, 255, .11);
      backdrop-filter: blur(8px);
      font-weight: 700;
      font-size: 12px;
      display: inline-flex;
      align-items: center;
      gap: 7px;
    }

    .auth-content {
      padding: 52px;
      display: flex;
      align-items: center;
      justify-content: center;
      background:
        linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .98)),
        radial-gradient(circle at top right, color-mix(in srgb, var(--auth-accent) 11%, transparent), transparent 35%);
    }

    .auth-card {
      width: min(440px, 100%);
      border: 1px solid var(--auth-border);
      border-radius: 24px;
      background: rgba(255, 255, 255, .94);
      box-shadow: 0 18px 45px rgba(31, 42, 61, .12);
      padding: 32px;
      backdrop-filter: blur(10px);
    }

    .auth-card .auth-icon {
      width: 56px;
      height: 56px;
      border-radius: 16px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: var(--auth-soft);
      border: 1px solid var(--auth-border);
      color: var(--auth-accent);
      font-size: 24px;
      margin-bottom: 18px;
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45);
    }

    .auth-card h4 {
      color: var(--auth-text);
      font-weight: 900;
      font-size: 26px;
      margin-bottom: 6px;
      letter-spacing: 0;
    }

    .auth-card .auth-subtitle {
      color: var(--auth-muted);
      margin-bottom: 22px;
      line-height: 1.45;
    }

    .auth-card .form-group {
      margin-bottom: 16px;
    }

    .auth-card .col-form-label {
      color: var(--auth-text);
      font-weight: 800;
      padding-bottom: 7px;
    }

    .auth-card .form-control {
      min-height: 48px;
      border-radius: 14px;
      border-color: #dce2ea;
      background: #fff;
      font-weight: 600;
    }

    .auth-card .form-control:focus {
      border-color: var(--auth-accent);
      box-shadow: 0 0 0 4px color-mix(in srgb, var(--auth-accent) 14%, transparent);
    }

    .auth-card .btn-primary,
    .auth-card .auth-primary-btn {
      min-height: 50px;
      border-radius: 14px;
      border-color: var(--auth-accent) !important;
      background: var(--auth-accent) !important;
      color: #fff !important;
      font-weight: 900;
      box-shadow: 0 12px 24px color-mix(in srgb, var(--auth-accent) 22%, transparent);
    }

    .auth-card .auth-link {
      color: var(--auth-accent);
      font-weight: 800;
      text-decoration: none;
    }

    .auth-card .auth-link:hover {
      color: var(--auth-secondary);
    }

    .auth-help-card {
      border: 1px solid var(--auth-border);
      border-radius: 16px;
      background: color-mix(in srgb, var(--auth-soft) 68%, #fff);
      padding: 14px;
      color: var(--auth-muted);
      margin-top: 18px;
      line-height: 1.45;
    }

    .auth-user-card {
      border: 1px solid var(--auth-border);
      border-radius: 16px;
      background: color-mix(in srgb, var(--auth-soft) 55%, #fff);
      padding: 14px;
      margin-top: 18px;
    }

    .auth-user-card p {
      margin-bottom: 5px;
      color: var(--auth-muted);
    }

    .auth-user-card strong {
      color: var(--auth-text);
    }

    @media (max-width: 991px) {
      .auth-page {
        padding: 16px;
      }

      .auth-shell {
        grid-template-columns: 1fr;
        min-height: auto;
      }

      .auth-brand {
        min-height: 260px;
        padding: 30px;
      }

      .auth-brand::after {
        left: 0;
        right: 0;
        top: 0;
        height: 170px;
        background-size: 100% auto;
        opacity: .24;
      }

      .auth-content {
        padding: 34px;
      }
    }

    @media (max-width: 575px) {
      .auth-page {
        padding: 0;
        align-items: stretch;
      }

      .auth-shell {
        border-radius: 0;
        min-height: 100vh;
      }

      .auth-brand {
        min-height: 210px;
        padding: 24px;
      }

      .auth-brand::after {
        left: 0;
        right: 0;
        top: 0;
        height: 140px;
        background-size: 100% auto;
        opacity: .2;
      }

      .auth-brand h1 {
        margin-top: 24px;
      }

      .auth-content {
        padding: 22px;
        align-items: flex-start;
      }

      .auth-card {
        border-radius: 20px;
        padding: 24px;
      }
    }
