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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1e293b;
  height: 100vh;
  background-color: #fff;
}

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

/* ===== LEFT PANEL - BRAND SECTION ===== */
.left-panel {
  flex: 1;
  width: 50%;
  background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
  color: white;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow-y: auto;
  z-index: 10;
}

.left-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.1), transparent 60%);
  pointer-events: none;
}

.welcome-text {
  position: relative;
  z-index: 1;
  margin-bottom: 48px;
}

.welcome-text h1.welcome {
  font-size: 48px;
  color: white;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
}

.brand-title span {
  font-size: 52px;
  font-weight: 900;
  line-height: 1.2;
  background: linear-gradient(to right, #fbbf24, #f59e0b);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  font-size: 19px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  margin: 0;
  max-width: 500px;
}

/* ===== FEATURES GRID ===== */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}

.feature-box {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 24px;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}

.feature-box:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

.feature-symbol img {
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  filter: brightness(0) saturate(100%) invert(75%) sepia(91%) saturate(655%) hue-rotate(2deg) brightness(100%) contrast(100%);
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: white;
}

.feature-desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* ===== BUBBLES SECTION ===== */
.bubbles-join-container {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.bubbles {
  display: flex;
  margin-right: 8px;
}

.bubbles span {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  margin-left: -12px;
}

.bubbles span:first-child {
  margin-left: 0;
}

.join {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: white;
  margin: 0 0 4px 0;
}

.jointext {
  font-size: 15px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* ===== RIGHT PANEL - FORM SECTION ===== */
.right-panel {
  width: 50%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  background: linear-gradient(135deg, #f0fdfa 0%, #ecfeff 50%, #ffffff 100%);
  position: relative;
  padding-top: 200px;
  padding-bottom: 40px;
}
.form-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.back-panel-btn {
  position: absolute;
  top: 20px;
  right: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
    background: white;
    border: 2px solid #e5e7eb;
}

.back-panel-btn:hover {
  color: #0891b2;
  border-color: #0891b2;
  transform: translateX(1px);
}

.back-panel-btn svg {
  width: 16px;
  height: 16px;
}

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

.alert {
  background-color: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  max-width: 100%;
  width: 100%;
  position: relative;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.success {
  background-color: #e6ffed;
  color: #0f5132;
  border: 1px solid #a3f7bf;
}

.close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: inherit;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.close:hover {
  opacity: 1;
}

/* ===== FORM STYLES ===== */
form {
  width: 100%;
  max-width: 450px;
  padding: 32px;
  border-radius: 24px;
  margin-top: auto; margin-bottom: auto; margin-left: auto; margin-right: auto;
  background: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 30px 60px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(12px);
  opacity: 1; transform: none;
}

form h2 {
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 12px;
  text-align: center;
  line-height: 1.2;
  color: #0f172a;
  letter-spacing: -0.02em;
}

form p {
  font-size: 16px;
  margin-bottom: 32px;
  color: #64748b;
  text-align: center;
  line-height: 1.6;
}

/* ===== FORM GROUPS ===== */
.name-row {
  display: flex;
  gap: 16px;
}

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

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

/* ===== INPUT FIELDS ===== */
.input-icon-wrapper {
  position: relative;
}

.input-icon-wrapper input {
  width: 100%;
  padding: 14px 16px 14px 48px;
  font-size: 16px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  transition: all 0.2s;
  font-family: inherit;
  background: white;
}

.input-icon-wrapper input:focus {
  outline: none;
  border-color: #0891b2;
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

.input-icon-wrapper input::placeholder {
  color: #9ca3af;
  opacity: 1;
}

.input-icon-wrapper img {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
}

.input-icon-wrapper img#toggle-password1,
.input-icon-wrapper img#toggle-password2 {
  left: auto;
  right: 14px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.input-icon-wrapper img#toggle-password1:hover,
.input-icon-wrapper img#toggle-password2:hover {
  opacity: 0.7;
}

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

/* ===== CHECKBOX & TERMS ===== */
.form-group input[type="checkbox"] {
  vertical-align: middle;
  margin-right: 8px;
  width: 18px;
  height: 18px;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  cursor: pointer;
  accent-color: #0891b2;
}

.form-group label[for="terms"] {
  display: inline;
  vertical-align: middle;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 500;
  cursor: pointer;
  color: #4b5563 !important;
}

.form-group label a {
  color: #0891b2;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
}

.form-group label a:hover {
  color: #0e7490;
  text-decoration: underline;
}

/* ===== SUBMIT BUTTON ===== */
.create-btn {
  background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
  color: white;
  padding: 16px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(8, 145, 178, 0.3);
}

.create-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(8, 145, 178, 0.4);
}

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

.create-btn i {
  font-size: 14px;
}

/* ===== SIGNIN LINK ===== */
.signin-link {
  font-size: 15px;
  margin-top: 28px;
  text-align: center;
  color: #64748b;
}

.signin-link a {
  color: #0891b2;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}

.signin-link a:hover {
  color: #0e7490;
}

/* ===== SPINNER ===== */
.mini-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media screen and (max-width: 1024px) {
  .left-panel {
    display: none;
  }

  .right-panel {
    width: 100%;
    padding: 40px 24px;
  }

  form {
    padding: 40px 32px;
  }
}

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

  .left-panel {
    display: none;
  }

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

  form {
    padding: 32px 28px;
  }

  form h2 {
    font-size: 28px;
  }

  form p {
    font-size: 15px;
  }

  .back-panel-btn {
    top: 20px;
    right: 20px;
  }

  .name-row {
    flex-direction: column;
    gap: 0;
  }
}

/* Extra Small Devices */
@media screen and (max-width: 480px) {
  form {
    padding: 28px 24px;
  }

  form h2 {
    font-size: 26px;
  }

  .input-icon-wrapper input {
    padding: 12px 14px 12px 44px;
    font-size: 15px;
  }

  .create-btn {
    padding: 14px;
    font-size: 15px;
  }
}

/* Large Screens */
@media screen and (min-width: 1440px) {
  .left-panel {
    padding: 80px;
  }

  .welcome-text h1.welcome {
    font-size: 52px;
  }

  .brand-title span {
    font-size: 56px;
  }

  .brand-subtitle {
    font-size: 20px;
  }

  form {
    max-width: 520px;
    padding: 56px;
  }
}