/* Sign-in and sign-up */

body {
  min-height: 100vh;
  display: flex;
  overflow: hidden;
}

/* Left Panel */
.left-panel {
  width: 480px;
  min-height: 100vh;
  background: var(--gray-800);
  color: var(--gray-200);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.left-panel::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.left-panel::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(229, 183, 56, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.brand {
  position: relative;
  z-index: 1;
}

.brand-tagline {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.3;
  color: var(--gray-200);
  margin-bottom: 24px;
  animation: fadeUp 0.6s ease-out;
}

.brand-tagline span {
  color: var(--teal-600);
}

.brand-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-400);
  max-width: 360px;
}

.left-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ua-flag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--gray-400);
}

/* Right Panel */
.right-panel {
  flex: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
}

/* Subtle grid pattern */
.right-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.form-container {
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.5s ease-out;
}

.form-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-brand-name {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.3px;
}

@media (min-width: 961px) {
  .form-brand {
    display: none;
  }
}

.form-header h1 {
  font-family: var(--font-body);
  font-size: 28px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.form-header p {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.5;
}

.form-header p a {
  color: var(--teal-700);
  text-decoration: none;
  font-weight: 500;
}

.form-header p a:hover {
  text-decoration: underline;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.input-wrapper {
  position: relative;
}

.form-input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 44px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--gray-900);
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  outline: none;
  transition: all 0.2s;
}

.form-input::placeholder {
  color: var(--gray-400);
}

.form-input:focus {
  border-color: var(--teal-600);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.input-wrapper .toggle-password {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-400);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.input-wrapper .toggle-password:hover {
  color: var(--gray-700);
}

.checkbox-wrapper {
  display: flex;
  cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
  display: none;
}

.checkbox-custom {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--gray-300);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.checkbox-custom svg {
  width: 12px;
  height: 12px;
  color: white;
  opacity: 0;
  transition: opacity 0.15s;
}

.checkbox-wrapper input:checked+.checkbox-custom {
  background: var(--teal-600);
  border-color: var(--teal-600);
}

.checkbox-wrapper input:checked+.checkbox-custom svg {
  opacity: 1;
}

.btn-primary {
  width: 100%;
  height: 50px;
  background: var(--teal-700);
  color: white;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  background: var(--teal-800);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.25);
}

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

.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.divider {
  display: flex;
  align-items: center;
  gap: 16px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

.divider span {
  font-size: 12px;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.btn-google {
  width: 100%;
  height: 48px;
  background: var(--white);
  color: var(--gray-700);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-google:hover {
  background: var(--gray-100);
  border-color: var(--gray-400);
}

.btn-google svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 960px) {
  /* Mobile */
  .left-panel {
    display: none;
  }

  .right-panel {
    padding: 24px;
  }

  body {
    background: var(--white);
  }
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Error state */
.form-input.error {
  border-color: var(--red-500);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.error-msg {
  font-size: 12px;
  color: var(--red-500);
  display: none;
}

.error-msg.visible {
  display: block;
}

/* Logo sits on the dark left panel */
.nav-name {
  color: inherit;
}
