  html,
  body {
    height: 100%;
  }

  body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    height: 100vh;
    overflow: hidden;
    background: url('../images/megaIMG/WE_Got_you.png') center 10% / cover no-repeat;
    background-color: #f5f5f5;
  }

  .login-container {
    display: flex;
    height: 100vh;
    width: 100%;
    align-items: stretch;
    justify-content: flex-end;
    opacity: 0.9;
  }

  .login-left {
    flex: 1;
    position: relative;
  }

  .login-right {
    width: 505px;
    background: #3E56C1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    position: relative;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
  }

  .back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    z-index: 100;
    background: #12004A;
    padding: 10px 18px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    margin: 40px auto 0 auto;
    width: fit-content;
  }

  .back-link:hover {
    filter: brightness(1.15);
    transform: translateY(-2px);
  }

  .back-link svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
  }

  .login-logo {
    position: absolute;
    top: 50px;
    left: 0;
    right: 70px;
    background: white;
    height: 90px;
    padding: 0 34px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0% 100%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    z-index: 10;
  }

  .login-logo img {
    height: 50px;
    width: auto;
    display: block;
    margin-left: 20px;
  }

  .login-form-container {
    width: 85%;
    max-width: 100%;
    margin-top: 20px;
  }

  .login-welcome {
    color: white;
    font-size: 85px;
    font-weight: bold;
    margin-bottom: 35px;
    text-align: center;
    letter-spacing: 1px;
  }

  .login-form-group {
    margin-bottom: 18px;
  }

  .login-form-group label {
    display: block;
    color: white;
    font-size: 13px;
    margin-bottom: 6px;
    font-weight: 500;
  }

  .login-form-group input,
  .login-form-group select {
    width: 100%;
    padding: 11px 15px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    background: white;
  }

  .login-form-group input::placeholder {
    color: #94a3b8;
  }

  /* Password toggle button styles */
  .password-input-wrapper {
    position: relative;
    width: 100%;
  }

  .password-input-wrapper input {
    padding-right: 45px;
  }

  .password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    border-radius: 4px;
    transition: all 0.2s ease;
  }

  .password-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #334155;
  }

  .password-toggle svg {
    width: 20px;
    height: 20px;
    display: block;
  }

  .login-consent {
    margin: 12px 0 18px;
    color: white;
    font-size: 13px;
    line-height: 1.5;
  }

  .login-consent__label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
  }

  .login-consent a {
    color: #dbeafe;
    text-decoration: underline;
  }

  .login-consent input[type="checkbox"] {
    margin-top: 2px;
  }

  .login-btn {
    width: 40%;
    padding: 11px;
    background: #12004A;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    transition: filter .2s ease, transform .2s ease;
  }

  .login-btn:hover {
    filter: brightness(1.15);
    transform: translateY(-2px);
  }

  .login-footer {
    position: absolute;
    bottom: 15px;
    text-align: center;
    color: white;
    font-size: 11px;
    line-height: 1.4;
    right: 30px;
    left: 30px;
  }

  .login-footer .imagine-link {
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s ease;
  }

  .login-footer .imagine-link:hover {
    opacity: 0.8;
    text-decoration: underline;
  }

  .login-footer .imagine-logo {
    height: 16px;
    width: auto;
    vertical-align: middle;
  }

  .alert {
    padding: 12px 16px;
    border-radius: 5px;
    margin-bottom: 20px;
    background: #fee2e2;
    color: #991b1b;
    font-size: 14px;
    border: 1px solid #fecaca;
  }

  @media (max-width: 768px) {
    body {
      overflow: auto;
      background-position: center 30%;
      min-height: 100vh;
      min-height: 100dvh;
    }

    .login-container {
      flex-direction: column;
      height: auto;
      min-height: 100vh;
      min-height: 100dvh;
      justify-content: center;
    }

    .login-left {
      display: none;
    }

    .login-right {
      width: 100%;
      min-height: 100vh;
      min-height: 100dvh;
      box-shadow: none;
      padding: 24px;
    }

    .login-logo {
      justify-content: center;
      left: 20px;
      right: 20px;
      top: 24px;
      height: 72px;
    }

    .login-logo img {
      margin-left: 0;
      height: 40px;
    }

    .login-form-container {
      width: 92%;
      margin-top: 96px;
    }

    .login-welcome {
      font-size: 48px;
      margin-bottom: 24px;
    }

    .login-btn {
      width: 100%;
      padding: 14px;
      font-size: 16px;
    }

    .back-link {
      font-size: 11px;
      padding: 8px 14px;
    }
  }

  @media (max-width: 420px) {
    .login-welcome {
      font-size: 40px;
    }

    .login-logo {
      top: 18px;
    }

    .login-form-container {
      margin-top: 88px;
    }

    body {
      background-position: center 25%;
    }
  }

  @supports (-webkit-touch-callout: none) {
    html {
      height: -webkit-fill-available;
    }

    body {
      min-height: -webkit-fill-available;
    }
  }

  /* Data Privacy Agreement Modal Styles */
  .dpa-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .dpa-modal-overlay--active {
    opacity: 1;
    visibility: visible;
  }

  /* Hide body scrollbar when modal is open */
  body:has(.dpa-modal-overlay--active) {
    overflow: hidden !important;
  }

  /* Fallback for browsers that don't support :has() */
  html.dpa-modal-open,
  html.dpa-modal-open body {
    overflow: hidden !important;
  }

  .dpa-modal {
    background: #fff;
    border-radius: 16px;
    width: 92%;
    max-width: 720px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.1),
      0 25px 50px -12px rgba(0, 0, 0, 0.4),
      0 12px 24px -8px rgba(0, 0, 0, 0.3);
    transform: scale(0.95) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
  }

  .dpa-modal-overlay--active .dpa-modal {
    transform: scale(1) translateY(0);
  }

  .dpa-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #3E56C1;
  }

  .dpa-modal__header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.2px;
  }

  .dpa-modal__close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    font-size: 18px;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
  }

  .dpa-modal__close:hover {
    background: rgba(255, 255, 255, 0.25);
  }

  .dpa-modal__body {
    flex: 1;
    overflow: hidden;
    min-height: 300px;
    max-height: 55vh;
    background: #fff;
  }

  .dpa-modal__body iframe {
    width: 100%;
    height: 55vh;
    border: none;
    display: block;
  }

  .dpa-modal__footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    background: linear-gradient(to top, #f8fafc, #fff);
  }

  .dpa-modal__btn {
    padding: 11px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
  }

  .dpa-modal__btn--secondary {
    background: #fff;
    border: 1.5px solid #d1d5db;
    color: #4b5563;
  }

  .dpa-modal__btn--secondary:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    transform: translateY(-1px);
  }

  .dpa-modal__btn--primary {
    background: #3E56C1;
    border: none;
    color: #fff;
  }

  .dpa-modal__btn--primary:hover {
    background: #2d4299;
    transform: translateY(-1px);
  }

  /* DPA Status Styles */
  .dpa-status {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .dpa-icon {
    font-size: 16px;
  }

  .dpa-icon--pending {
    color: rgba(255, 255, 255, 0.6);
  }

  .dpa-icon--agreed {
    color: #4ade80;
  }

  .dpa-status--agreed {
    color: #bbf7d0;
  }

  .dpa-link {
    color: #dbeafe;
    text-decoration: underline;
  }

  .dpa-link:hover {
    color: #fff;
  }

  /* DPA Notice Warning */
  .dpa-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 6px;
    color: #fecaca;
    font-size: 13px;
  }

  .dpa-notice__icon {
    font-size: 16px;
    color: #f87171;
  }

  .dpa-notice__text {
    flex: 1;
  }

  .dpa-notice--shake {
    animation: shake 0.5s ease-in-out;
  }

  @keyframes shake {

    0%,
    100% {
      transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
      transform: translateX(-4px);
    }

    20%,
    40%,
    60%,
    80% {
      transform: translateX(4px);
    }
  }

  /* Disabled Login Button */
  .login-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }

  .login-btn--enabled {
    opacity: 1;
    cursor: pointer;
  }

  /* Mobile Modal Styles */
  @media (max-width: 768px) {
    .dpa-modal {
      width: 95%;
      max-height: 90vh;
    }

    .dpa-modal__header {
      padding: 16px 20px;
    }

    .dpa-modal__header h2 {
      font-size: 18px;
    }

    .dpa-modal__body {
      min-height: 300px;
    }

    .dpa-modal__body iframe {
      min-height: 300px;
    }

    .dpa-modal__footer {
      padding: 14px 20px;
      flex-direction: column-reverse;
    }

    .dpa-modal__btn {
      width: 100%;
      text-align: center;
    }
  }