/* =========================================
   Signup Page – VisionAI
   White Theme + Rainbow Style
   Author: Zabiullah
   Version: 2.0
========================================= */

/* ===== SIGNUP SECTION ===== */
.signup-section {
  padding: 60px 0 80px;
  background: var(--bg-soft);
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
}

.signup-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  max-width: 960px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* ===== BRAND SIDE ===== */
.signup-brand {
  padding: 48px 36px;
  background: linear-gradient(145deg, #f8fafc, #ffffff);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--border-light);
}

.signup-brand .brand-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.signup-brand h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-bottom: 10px;
}

.signup-brand p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
}

.signup-brand .brand-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.signup-brand .brand-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text);
}

.signup-brand .brand-feature span {
  font-size: 20px;
  width: 28px;
}

.signup-brand .brand-feature p {
  margin-bottom: 0;
  font-weight: 500;
}

/* ===== FORM SIDE ===== */
.signup-form {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.signup-form h3 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.signup-form .form-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* ===== FORM GROUPS ===== */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text);
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: #ffffff;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s;
  outline: none;
  color: var(--text);
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.form-group input:focus {
  border-color: transparent;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #7c4dff;
}

/* ===== FORM OPTIONS ===== */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 4px 0 24px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  accent-color: #7c4dff;
  cursor: pointer;
  margin-top: 2px;
}

.checkbox-label a {
  color: var(--text);
  font-weight: 600;
  transition: color 0.2s;
}

.checkbox-label a:hover {
  background: var(--rainbow);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== SUBMIT BUTTON ===== */
.signup-form .btn-primary {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 16px;
  margin-top: 4px;
}

/* ===== DIVIDER ===== */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0 18px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

.divider span {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ===== SOCIAL SIGNUP ===== */
.social-signup {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text);
  font-family: inherit;
}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: transparent;
}

.social-btn.google:hover {
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.2);
}

.social-btn.github:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ===== LOGIN LINK ===== */
.login-link {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

.login-link a {
  font-weight: 700;
  color: var(--text);
  transition: color 0.2s;
}

.login-link a:hover {
  background: var(--rainbow);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  .signup-wrapper {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .signup-brand {
    padding: 32px 28px;
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    text-align: center;
  }

  .signup-brand .brand-features {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .signup-brand .brand-feature {
    flex: 0 1 auto;
  }

  .signup-form {
    padding: 32px 28px;
  }

  .signup-section {
    padding: 40px 0 60px;
  }
}

@media (max-width: 500px) {
  .signup-brand {
    padding: 24px 18px;
  }

  .signup-brand h2 {
    font-size: 22px;
  }

  .signup-form {
    padding: 24px 18px;
  }

  .signup-form h3 {
    font-size: 22px;
  }

  .social-signup {
    grid-template-columns: 1fr;
  }

  .form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}