:root {
    --primary-color: #2196F3;
    --secondary-color: #607D8B;
    --bg-light: #f8f9fa;
    --bg-dark: #0d1b2a;
    --text-light: #ffffff;
    --text-dark: #2c3e50;
  }

  body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: background-color 0.3s, color 0.3s;
    max-width: 100%;
    width: 100%;
    overflow-x: hidden;
    position: relative;
  }

  body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/assets/kennix.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
  }

  body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
  }

  .container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    box-sizing: border-box;
  }

  .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: linear-gradient(to right, rgba(44, 62, 80, 0.8), rgba(52, 152, 219, 0.8));
    border-bottom: none;
    position: relative;
    backdrop-filter: blur(5px);
    width: 100%;
    box-sizing: border-box;
  }

  .header-left {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .logo {
    height: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
  }

  .logo img {
    height: 100%;
    width: auto;
  }

  .logo-text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 32px;
    font-weight: 500;
    letter-spacing: 1px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
    line-height: 1.1;
  }

  @media (max-width: 768px) {
    .logo {
      height: 40px;
      gap: 10px;
    }

    .logo-text {
      font-size: 24px;
      letter-spacing: 0.5px;
    }

    /* Hide the original text in mobile view */
    .logo-text span {
      display: none;
    }

    /* Add the wrapped text in mobile view */
    .logo-text::after {
      content: 'Kennix';
      white-space: pre;
      display: block;
    }
  }

  main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
  }

  .left,
  .right {
    flex: 1;
    min-width: 300px;
    padding: 2rem 2rem;
    box-sizing: border-box;
  }

  .left {
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: rgba(44, 62, 80, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    margin: 1rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  }

  .left h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }

  .left p {
    font-size: 1.2rem;
    line-height: 1.7;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  }

  .right {
    max-width: 500px;
    margin: 0 auto;
    display: block;
  }

  #sign-in {
    width: 100%;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    overflow-x: hidden;
    padding: 1.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  footer {
    text-align: center;
    padding: 1rem;
    font-size: 0.875rem;
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    backdrop-filter: blur(5px);
    width: 100%;
    box-sizing: border-box;
  }

  @media (max-width: 768px) {
    main {
      flex-direction: column;
      gap: 2rem;
      align-items: center;
    }
    .left, .right {
      width: 100%;
      max-width: 600px;
      min-width: 0;
      margin: 0 auto;
      padding: 1.5rem 1rem;
    }
    #sign-in {
      max-width: 100%;
      padding: 1rem 0;
    }
  }

  @media (max-width: 768px) {

    body,
    html {
      width: 100%;
      overflow-x: hidden;
    }

    .container {
      width: 100%;
      overflow-x: hidden;
    }

    main {
      flex-direction: column;
      padding: 1rem 0;
      width: 100%;
      overflow-x: hidden;
    }

    .left,
    .right {
      min-height: 300px;
      margin: 0.5rem 1rem;
      width: calc(100% - 2rem);
      max-width: calc(100% - 2rem);
    }

    .left {
      padding: 1.5rem;
    }

    .sign-in-container {
      padding: 1.5rem;
      width: 100%;
      max-width: 100%;
    }

    /* Force Clerk container to be fixed width on mobile */
    #sign-in {
      width: 100% !important;
      max-width: 100% !important;
    }

    /* Try to contain any iframes that might be used by Clerk */
    iframe {
      max-width: 100% !important;
      width: 100% !important;
    }
  }

  /* Footer Styles */
  .login-footer {
    position: relative;
    background-color: transparent;
    padding: 1rem 2rem;
    margin-top: 2rem;
    color: #666;
  }

  .login-footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    padding: 0 1rem;
  }

  .login-footer .footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .login-footer .footer-link {
    color: #2196F3;
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .login-footer .footer-link:hover {
    color: #1976D2;
    text-decoration: underline;
  }

  .login-footer .footer-separator {
    color: #e0e0e0;
  }

  /* Mobile adjustments for footer */
  @media (max-width: 768px) {
    .login-footer {
      padding: 1rem;
      margin-top: 1rem;
    }
    
    .login-footer .footer-content {
      flex-direction: column;
      gap: 0.5rem;
      text-align: center;
      padding: 0;
    }
    
    .login-footer .footer-links {
      justify-content: center;
    }
  }