@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700;800&family=Montserrat:wght@400;500;600;700&display=swap');

:root {
  --font-heading: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --color-bg-left: #ffffff;
  --color-bg-right: #050505;
  --color-text-main: #000000;
  --color-text-sub: #1f2937;
  --color-text-label: #4b5563;
  --color-text-dim: #6b7280;
  --color-border: #d1d5db;
  --color-border-hover: #9ca3af;
  --color-border-focus: #000000;
  --color-btn-bg: #000000;
  --color-btn-hover: #1f1f1f;
  --color-btn-text: #ffffff;

  --radius-input: 12px;
  --radius-btn: 4px;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  background-color: var(--color-bg-left);
  color: var(--color-text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* Page Layout Container */
.login-page {
  display: flex;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  position: relative;
  background-color: var(--color-bg-left);
  overflow-x: clip;
}

/*  LEFT PANEL */
.login-left-panel {
  flex: 0 0 58.5%;
  width: 58.5%;
  max-width: 58.5%;
  min-height: 100vh;
  background-color: var(--color-bg-left);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 86px;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

/* Content Container*/
.login-content-box {
  width: 100%;
  max-width: 600px;
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* Logo at Top with spacing to heading */
.login-brand-wrapper {
  margin-bottom: 70px;
}

.login-brand-link {
  display: inline-block;
  text-decoration: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.login-brand-link:hover {
  opacity: 0.85;
}

.login-brand-logo {
  width: auto;
  display: block;
}

/* Header Headings */
.login-header-group {
  margin-bottom: 65px;
}

.login-title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 600;
  color: var(--color-text-main);
  letter-spacing: -0.4px;
  line-height: 60px;
  margin-bottom: 12px;
  white-space: nowrap;
}

.login-subtitle {
  font-size: 18px;
  line-height: 1.5;
  color: var(--color-text-sub);
  font-weight: 400;
  font-family: var(--font-body);
}

.signup-link {
  color: var(--color-text-main);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: opacity var(--transition-fast);
}

.signup-link:hover {
  opacity: 0.7;
}

/* Form Structure */
.login-form {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 28px;
  position: relative;
}

.form-label {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-label);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  font-family: var(--font-body);
}

/* Password Label Eye Icon */
.label-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.label-row-between .form-label {
  margin-bottom: 0;
}

.password-toggle-btn {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text-sub);
  transition: color var(--transition-fast);
  user-select: none;
}

.password-toggle-btn:hover {
  color: var(--color-text-main);
}

.password-toggle-btn svg {
  font-size: 14px;
  width: 16px;
  height: 16px;
  display: inline-block;
  color: inherit;
}

/* Form Inputs */
.form-input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-input);
  background-color: #ffffff;
  color: var(--color-text-main);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 0 16px;
  outline: none;
  box-sizing: border-box;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:hover {
  border-color: var(--color-border-hover);
}

.form-input:focus {
  border-color: var(--color-border-focus);
  box-shadow: 0 0 0 1px var(--color-border-focus);
}

/* Submit Button */
.form-actions {
  margin-top: 6px;
}

.btn-join-kanaka {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-btn-bg);
  color: var(--color-btn-text);
  border: none;
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -2%;
  cursor: pointer;
  transition: background-color var(--transition-fast), transform 0.15s ease;
  user-select: none;
  text-decoration: none;
  min-height: 38px;
}

.btn-join-kanaka:hover {
  background-color: var(--color-btn-hover);
  transform: translateY(-1px);
}

.btn-join-kanaka:active {
  transform: translateY(0);
}

.btn-join-kanaka:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

/* RIGHT PANEL  */
.login-right-panel {
  flex: 0 0 41.5%;
  width: 41.5%;
  max-width: 41.5%;
  min-height: 100vh;
  height: 100vh;
  height: 100dvh;
  position: sticky;
  top: 0;
  align-self: flex-start;
  background-color: #141414;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.right-visual-container {
  width: 100%;
  height: 100%;
  position: relative;
  background-color: #141414;
}

.right-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 18%;
  display: block;
  user-select: none;
  pointer-events: none;
}

.visual-subtle-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

@media (max-width: 1440px) {
  .login-left-panel {
    padding: 72px 56px;
  }

  .login-brand-wrapper {
    margin-bottom: 64px;
  }

  .login-header-group {
    margin-bottom: 48px;
  }

  .login-title {
    font-size: 42px;
    line-height: 52px;
  }
}

@media (max-width: 1200px) {
  .login-left-panel {
    flex: 0 0 55%;
    width: 55%;
    max-width: 55%;
    padding: 56px 40px;
  }

  .login-right-panel {
    flex: 0 0 45%;
    width: 45%;
    max-width: 45%;
  }

  .login-brand-wrapper {
    margin-bottom: 50px;
  }

  .login-header-group {
    margin-bottom: 40px;
  }

  .login-title {
    font-size: 36px;
    line-height: 46px;
    white-space: normal;
  }

  .login-subtitle {
    font-size: 16px;
  }
}

@media (max-width: 991.98px) {
  .login-page {
    flex-direction: column;
    min-height: 100vh;
  }

  .login-right-panel {
    order: -1;
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    height: 300px;
    min-height: 300px;
    position: relative;
    top: auto;
    display: block;
  }

  .right-visual-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
  }

  .login-left-panel {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-height: auto;
    padding: 40px 36px 40px;
    align-items: flex-start;
  }

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

  .login-brand-wrapper {
    margin-bottom: 36px;
  }

  .login-header-group {
    margin-bottom: 32px;
  }

  .login-title {
    font-size: 34px;
    line-height: 44px;
    white-space: normal;
  }

  .login-subtitle {
    font-size: 16px;
  }
}

@media (max-width: 767.98px) {
  .login-page {
    flex-direction: column;
    min-height: 100vh;
  }

  .login-right-panel {
    order: -1;
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    height: 250px;
    min-height: 250px;
    position: relative;
    top: auto;
    display: block;
  }

  .right-visual-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
  }

  .login-left-panel {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-height: auto;
    padding: 32px 24px 32px;
  }

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

  .login-brand-wrapper {
    margin-bottom: 28px;
  }

  .login-header-group {
    margin-bottom: 24px;
  }

  .login-title {
    font-size: 30px;
    line-height: 38px;
    white-space: normal;
  }

  .login-subtitle {
    font-size: 15px;
  }

  .form-group {
    margin-bottom: 22px;
  }

  .form-label,
  .password-toggle-btn {
    font-size: 15px;
  }

  .form-input {
    height: 46px;
    font-size: 15px;
  }

  .btn-join-kanaka {
    width: 100%;
    height: 44px;
    font-size: 15px;
  }
}

@media (max-width: 575.98px) {
  .login-page {
    flex-direction: column;
    min-height: 100vh;
  }

  .login-right-panel {
    order: -1;
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    height: 210px;
    min-height: 210px;
    position: relative;
    top: auto;
    display: block;
  }

  .right-visual-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
  }

  .login-left-panel {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-height: auto;
    padding: 28px 20px 32px;
  }

  .login-brand-wrapper {
    margin-bottom: 22px;
  }

  .login-brand-logo {
    height: 20px;
  }

  .login-header-group {
    margin-bottom: 20px;
  }

  .login-title {
    font-size: 26px;
    line-height: 34px;
    letter-spacing: -0.3px;
    white-space: normal;
  }

  .login-subtitle {
    font-size: 14px;
  }

  .form-group {
    margin-bottom: 18px;
  }

  .form-label,
  .password-toggle-btn {
    font-size: 14px;
  }

  .form-input {
    height: 44px;
    font-size: 14px;
    padding: 0 14px;
    border-radius: 10px;
  }

  .btn-join-kanaka {
    width: 100%;
    height: 44px;
    font-size: 15px;
  }
}