/**
 * KRA - Login Page Styles
 */

.kra-login-container {
  width: 100%;
  height: 100vh;
  display: flex;
  position: relative;
  overflow: hidden;
}

.kra-login-left {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  position: relative;
  z-index: 10;
}

.kra-login-right {
  width: 50%;
  height: 100%;
  background: #194bfb;
  display: none;

  @media (min-width: 768px) {
    display: block;
  }

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.kra-login-oblique {
  position: absolute;
  height: 130%;
  width: 60%;
  background: #fff;
  transform: rotate(-12deg);
  margin-left: -200px;
  z-index: 5;
}

.kra-login-form-wrapper {
  width: 100%;
  max-width: 384px;
  padding: 48px 24px;
  z-index: 999;
}

.kra-login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.kra-login-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
  color: rgba(0, 0, 0, 0.85);
}

.kra-login-subtitle {
  text-align: center;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.45);
  margin-bottom: 36px;
}

.kra-login-captcha-wrapper {
  display: flex;
  gap: 12px;
}

.kra-login-captcha-input {
  flex: 1;
}

.kra-login-captcha-image {
  width: 120px;
  height: 40px;
  border-radius: 6px;
  cursor: pointer;
  background: #c3d4f2;
  transition: opacity 0.2s;

  &:hover {
    opacity: 0.8;
  }
}

.kra-login-submit-btn {
  width: 100%;
  height: 44px;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(24, 144, 255, 0.35);

  &:hover {
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.45);
  }
}

.kra-login-init-btn {
  width: 100%;
  height: 44px;
  font-size: 16px;
  margin-top: 12px;
}

.kra-login-bottom {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  z-index: 20;
}

.kra-login-links {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;

  @media (min-width: 768px) {
    display: flex;
  }

  a {
    display: block;
    
    img {
      width: 32px;
      height: 32px;
      transition: transform 0.2s;

      &:hover {
        transform: scale(1.1);
      }
    }
  }
}

// Dark mode support
:global(.dark) {
  .kra-login-left {
    background: #141414;
  }

  .kra-login-oblique {
    background: #141414;
  }

  .kra-login-title {
    color: rgba(255, 255, 255, 0.85);
  }

  .kra-login-subtitle {
    color: rgba(255, 255, 255, 0.45);
  }
}
