/* === BASE RESET === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  line-height: inherit;
  font-family: 'Inter', sans-serif;
  color: #333;
  height: 100vh;
  background-color: #fff;
}

.container {
  display: flex;
  overflow: hidden;
  height: 100vh;
}

/* Left Panel */
.left-panel {
  flex: 1; 
  width: 50%;
  background: linear-gradient(to bottom right, #10b981, #0d9488, #0e7490);
  color: white;
  padding: 48px 48px 48px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow-y: auto;
  min-height: 100%;
  z-index: 10;
}

.welcome-text h1.welcome {
  font-size: 48px;
  color: rgb(255 255 255 / 1);
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  opacity: 1;
  transform: none;
}

.brand-title span {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.25;
  background: linear-gradient(to right, #facc15, #fb923c);
  margin-bottom: 12px;
  background-clip: text;
  color: transparent;
}

.brand-subtitle {
  font-size: 20px;
  margin-bottom: 48px !important;
  color: #b7f7e1;
  line-height: 1.625;
  margin: 0;
  display: block;
  margin-block-start: 1em;
  margin-block-end: 1em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  unicode-bidi: isolate;
}

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.feature-box {
  background-color: #ffffff1a;
  border-radius: 16px;
  border-width: 1px;
  border-color: #fff3;
  padding: 24px;
  opacity: 1;
  transform: none;
  display: block;
  unicode-bidi: isolate;
  box-sizing: border-box;
  border-style: solid;
  --tw-backdrop-blur: blur(4px);
  backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
}

.feature-symbol img {
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  color: rgb(250 204 21 /1);
  filter: brightness(0) saturate(100%) invert(75%) sepia(91%) saturate(655%) hue-rotate(2deg) brightness(100%) contrast(100%);

}

.feature-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  color: rgb(255 255 255 /1);
}

.feature-desc {
  font-size: 14px;
  line-height: 20px;
  color: #d1fae5;
  margin: 0;
}

/* BUBBLES */
.bubbles-join-container {
  display: flex;
  align-items: center;
  margin-top: 48px;
  opacity: 1;
  gap: 16px;
  unicode-bidi: isolate;
}

.bubbles {
  display: flex;
}

.bubbles span {
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  border-width: 2px;
  background-image: linear-gradient(to bottom right, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  border-color: #ffffff4d;
  border-style: solid;
}

.bubbles span:not([hidden])~span:not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(-0.75rem * var(--tw-space-x-reverse));
  margin-left: calc(-0.75rem * (1 - var(--tw-space-x-reverse)));
}

.join {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  color: rgb(255 255 255 /1);
}

.jointext {
  font-size: 15px;
  line-height: 20px;
  color: #d1fae5;

}

/* === RIGHT PANEL === */
.right-panel {
  width: 50%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  background: linear-gradient(to bottom right, #f9fafb, #ffffff);
}

.alert-container {
  width: 100%;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.alert {
  background-color: rgb(254 242 242 / 1);
  color: rgb(185 28 28 /1);
  border: 1px solid rgb(254 202 202 / 1);
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  max-width: 400px;
  width: 100%;
  position: relative;
}

.success {
  background-color: #e6ffed;
  color: #0f5132;
  border: 1px solid #a3f7bf;
  padding: 12px 15px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 15px;
}

.close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

form {
  width: 100%;
  max-width: 448px;
  padding: 32px;
  margin-top: auto; margin-bottom: auto; margin-left: auto; margin-right: auto;
  opacity: 1; transform: none;
}

form h2 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 8px;
  text-align: center;
  line-height: 36px;
  color: #111827;
}

form p {
  font-size: 16px;
  margin-bottom: 32px;
  color: rgb(75 85 99 /1);
  text-align: center;
}

.name-row {
  display: flex;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  margin-bottom: 8px;
  text-align: left;
  color: #111827 !important;
  cursor: default;
}

.input-icon-wrapper {
  position: relative;
}

.input-icon-wrapper input {
  width: 100%;
  padding-top: 15px;
  padding-bottom: 15px;
  padding-left: 48px;
  padding-right: 16px;
  font-size: 16px;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  transition-duration: .2s;
  transition-property: all;
  transition-timing-function: cubic-bezier(.4,0,.2,1);
}

input::placeholder {
  color: rgb(156 163 175 /1); 
  opacity: 1; 
}

.input-icon-wrapper img {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  --tw-translate-y: -50%;
  color: rgb(156 163 175 /1);
  /*font-size: 14px;*/
  height: 20px;
  width: 20px;
  display: block;
}

.input-icon-wrapper img#toggle-password1 {
  position: absolute;
  top: 50%;
  left: auto;
  right: 12px;
  transform: translateY(-50%);
  --tw-translate-y: -50%;
  color: rgb(156 163 175 /1);
  width: 20px;
  height: 20px;
  cursor: pointer;
}


.input-icon-wrapper img#toggle-password2 {
  position: absolute;
  top: 50%;
  left: auto;
  right: 12px;
  transform: translateY(-50%);
  --tw-translate-y: -50%;
  color: rgb(156 163 175 /1);
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.input-icon-gray {
  filter: brightness(0) saturate(100%) invert(80%) sepia(3%) saturate(250%) hue-rotate(180deg) brightness(95%) contrast(85%);
}

/* === CHECKBOX & LINKS === */
.form-group input[type="checkbox"] {
  vertical-align: middle;
  margin-right: 4px;
  transform: scale(1);
  color: rgb(5 150 105 /1);
  border-color: rgb(209 213 219 /1);
  border-radius: 4px;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  background-color: initial;
  cursor: default;
  appearance: auto;
}

.form-group label[for="terms"] {
  display: inline;
  vertical-align: middle;
  font-size: 14px;
  line-height: 20px;
  margin-left: 6px;
  cursor: default;
  color: rgb(75 85 99 /1);
}

.form-group label a {
  color: rgb(5 150 105 /1);
  text-decoration: inherit;
  cursor: pointer;
}

/* === SUBMIT BUTTON === */
.create-btn {
  background: linear-gradient(to right, #059669,#0d9488);
  color: rgb(255 255 255 /1);
  padding: 12px 12px 16px 16px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px; 
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.create-btn:hover {
  opacity: 0.92;
  transform: scale(1.02);
}

.signin-link {
  font-size: 16px;
  margin-top: 32px;
  text-align: center;
  color: rgb(75 85 99 /1);
}

.signin-link a {
  color: rgb(5 150 105 /1);
  font-weight: 500;
  text-decoration: inherit;
  cursor: pointer;
}

.mini-spinner {
  display:inline-block;
  width:20px;height:20px;
  border:3px solid rgba(255,255,255,.6);
  border-top-color:#fff;
  border-radius:50%;
  animation:mini-spin .7s linear infinite;
}
@keyframes mini-spin{to{transform:rotate(360deg)}}

button.spinning{
  pointer-events:none;          
  opacity:0.9;
}

/* Mobile: stack panels vertically */
@media screen and (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .left-panel, .right-panel {
    width: 100%;
    padding: 20px;
  }

  body {
    font-size: 90%;
  }
}

/* Tablet: slightly smaller font, less padding */
@media screen and (max-width: 1024px) and (min-width: 769px) {
  .left-panel, .right-panel {
    padding: 30px;
  }

  body {
    font-size: 95%;
  }
}

/* Large screens: bigger font, more padding */
@media screen and (min-width: 1440px) {
  .left-panel, .right-panel {
    padding: 60px;
  }

  body {
    font-size: 110%;
  }
}
