/* ==========================================
   SIGNUP FORM STYLES - CLEAN VERSION
   ========================================== */

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* CSS Variables */
:root {
  --primary: #7000b5;
  --secondary: #5c0099;
  --success: #4cc9f0;
  --light: #f8f9fa;
  --dark: #212529;
  --gray: #6c757d;
  --danger: #e63946;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

    /* Hide reCAPTCHA badge */
    .grecaptcha-badge {
        pointer-events: none !important;
        display: none;
    }

    .google , .reCAPTCHA {
      font-weight: bold;
      color: var(--primary);
    }

/* ==========================================
   LAYOUT STYLES
   ========================================== */

body {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

.signup-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.container {
  display: flex;
  max-width: 900px;
  width: 100%;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

/* ==========================================
   COMPANY LOGO
   ========================================== */

.company-logo {
  text-align: center;
  margin-bottom: 30px;
}

.company-logo img {
  width: auto;
  max-width: 160px;
  object-fit: contain;
  transition: var(--transition);
}

.company-logo a:hover img {
  transform: scale(1.05);
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero-section {
  flex: 1;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  top: -100px;
  left: -100px;
}

.hero-section::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  bottom: -50px;
  right: -50px;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: 30px;
}

.hero-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 30px 0;
}

/* ==========================================
   FORM SECTION
   ========================================== */

.form-section {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-container {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.logo {
  text-align: center;
  margin-bottom: 30px;
}

.logo i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.logo h2 {
  font-size: 1.5rem;
  color: var(--dark);
  font-weight: 600;
  line-height: 1.3;
}

/* ==========================================
   TABS
   ========================================== */

.tabs {
  display: flex;
  margin-bottom: 30px;
  border-radius: 10px;
  background: #f8f9fa;
  padding: 5px;
}

.tab {
  flex: 1;
  text-align: center;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
  color: var(--gray);
}

.tab.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 10px rgba(112, 0, 181, 0.3);
}

.tab:hover:not(.active) {
  background: rgba(112, 0, 181, 0.1);
  color: var(--primary);
}

/* ==========================================
   FORMS
   ========================================== */

.form {
  display: none;
  animation: fadeInUp 0.5s ease forwards;
}

.form.active {
  display: block;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================
   INPUT GROUPS
   ========================================== */

.input-group {
  margin-bottom: 20px;
  position: relative;
}

.input-group input {
  width: 100%;
  padding: 14px 20px 14px 45px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  transition: var(--transition);
  background: white;
  color: var(--dark);
  line-height: 1.4;
  box-sizing: border-box;
}

.input-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(112, 0, 181, 0.2);
  outline: none;
}

/* ==========================================
   ICONS
   ========================================== */

.input-group i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
  transition: var(--transition);
  z-index: 5;
  font-size: 1rem;
}

/* Mobile Icon */
.input-group i.fa-mobile-alt {
  font-size: 1.1rem;
  color: #007bff;
}

/* Lock Icon */
.input-group i.fa-lock {
  font-size: 1rem;
  color: var(--gray);
}

/* Icon color change when input is focused */
.input-group:focus-within i:not(.toggle-password) {
  color: var(--primary);
}

/* Hover effects for icons */
.input-group:hover i.fa-mobile-alt {
  color: #0056b3;
  transform: translateY(-50%) scale(1.05);
}

.input-group:hover i.fa-lock {
  color: var(--primary);
  transform: translateY(-50%) scale(1.05);
}

/* ==========================================
   PASSWORD TOGGLE
   ========================================== */

.input-group .toggle-password {
  position: absolute;
  left: 90%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #666;
  cursor: pointer;
  font-size: 16px;
  z-index: 10;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-group .toggle-password:hover {
  color: #007bff;
}

.input-group .toggle-password:active {
  color: #0056b3;
}

/* Input padding for password fields */
.input-group input[type="password"],
.input-group input[type="text"][name="password"],
.input-group input[type="text"][name="confirm_password"] {
  padding-left: 45px;
  padding-right: 45px;
  text-align: left;
}

/* ==========================================
   FORM VALIDATION
   ========================================== */

.input-group.valid input {
  border-color: var(--success);
  box-shadow: 0 0 0 3px rgba(76, 201, 240, 0.2);
}

.input-group.invalid input {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.2);
}

/* ==========================================
   REMEMBER & FORGOT PASSWORD
   ========================================== */

.remember {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  font-size: 0.9rem;
}

.remember label {
  display: flex;
  align-items: center;
  cursor: pointer;
  color: var(--gray);
}

.remember input[type="checkbox"] {
  margin-right: 8px;
  width: 16px;
  height: 16px;
}

.remember a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.remember a:hover {
  text-decoration: underline;
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn {
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 15px;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(112, 0, 181, 0.3);
}

.btn-secondary {
  background: var(--gray);
  color: white;
}

.btn-secondary:hover {
  background: #5a6268;
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ==========================================
   DIVIDER
   ========================================== */

.divider {
  display: flex;
  align-items: center;
  margin: 25px 0;
  color: var(--gray);
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e0e0e0;
}

.divider span {
  padding: 0 15px;
  font-size: 0.9rem;
}

/* ==========================================
   GOOGLE BUTTON
   ========================================== */

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  color: var(--dark);
  border: 1px solid #e0e0e0;
}

.btn-google:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.btn-google i {
  font-size: 1.2rem;
  margin-right: 10px;
  color: var(--danger);
}

/* ==========================================
   SIGNUP LINK
   ========================================== */

.signup-link {
  text-align: center;
  margin-top: 25px;
  font-size: 0.95rem;
  color: var(--gray);
}

.signup-link a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  margin-left: 5px;
  transition: var(--transition);
}

.signup-link a:hover {
  text-decoration: underline;
}

/* ==========================================
   RECAPTCHA NOTICE
   ========================================== */

.recaptcha-notice {
  text-align: center;
  margin: 20px 0;
  padding: 10px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.recaptcha-notice small {
  font-size: 0.8rem;
  color: var(--gray);
  line-height: 1.4;
}

.recaptcha-notice a {
  color: var(--dark);
  text-decoration: underline;
  font-weight: 500;
}

.recaptcha-notice a:hover {
  text-decoration: underline;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }
  
  .hero-section {
    padding: 30px 20px;
    display: none;
  }
  
  .form-section {
    padding: 30px 20px;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  body {
    padding: 10px;
  }
  
  .company-logo {
    margin-bottom: 20px;
  }
  
  .form-section {
    padding: 20px 15px;
  }
  
  .hero-content h1 {
    font-size: 1.8rem;
  }
}

/* ==========================================
   DARK MODE OVERRIDES
   ========================================== */

.signup-container .input-group input,
.signup-container .input-group input[type="password"],
.signup-container .input-group input[type="text"] {
  background-color: white;
  color: #333;
  border-color: #e0e0e0;
}

.signup-container .input-group input:focus {
  background-color: white;
  color: #333;
  border-color: var(--primary);
}

body .signup-container input[type="password"],
body .signup-container input[type="text"][name="password"],
body .signup-container input[type="text"][name="confirm_password"] {
  background: white;
  color: #333;
  font-size: 1rem;
  opacity: 1;
  visibility: visible;
}
