:root {
  --primary: rgb(58, 134, 204);
  --primary-hover: rgb(44, 107, 166);
  --primary-light: rgba(58, 134, 204, 0.1);
  --success: #10b981;
  --warning: #f59e0b;
  --bg-color: #f8fafc;
  --surface: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --border-color: rgba(58, 134, 204, 0.15);
  --ring-bg: rgba(58, 134, 204, 0.1);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Navbar */
.navbar {
  background: rgba(58, 134, 204, 0.85); /* Glossy Blue */
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1rem 3rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.brand img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #ffffff;
  border: 4px solid #ffffff;
  box-shadow: 
    0 10px 15px -3px rgba(58, 134, 204, 0.3),
    0 4px 6px -4px rgba(58, 134, 204, 0.3),
    inset 0 -3px 6px rgba(0, 0, 0, 0.1),
    inset 0 3px 6px rgba(255, 255, 255, 1);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.brand img:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 
    0 20px 25px -5px rgba(58, 134, 204, 0.4),
    0 8px 10px -6px rgba(58, 134, 204, 0.4),
    inset 0 -3px 6px rgba(0, 0, 0, 0.1),
    inset 0 3px 6px rgba(255, 255, 255, 1);
}

.brand span {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff !important;
  letter-spacing: -0.025em;
}

/* Back Button */
.btn-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.1rem;
  margin-right: 1.5rem;
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-color: #ffffff;
  transform: translateX(-3px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

/* Split Screen Layout */
.signup-page-wrapper {
  display: flex;
  flex: 1;
}

/* Left Side: Branding / Info */
.signup-left {
  flex: 1;
  background: linear-gradient(135deg, var(--primary) 0%, rgb(40, 95, 150) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}

.signup-left::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 10%, transparent 40%);
  animation: pulseRotate 20s linear infinite;
  pointer-events: none;
}

@keyframes pulseRotate {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}

.left-content {
  position: relative;
  z-index: 10;
  max-width: 520px;
}

.left-content h1 {
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  background: #ffffff;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.left-content p {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 2rem;
  font-weight: 400;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 1.25rem;
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateX(10px);
  background: rgba(255, 255, 255, 0.15);
}

.icon-box {
  background: #ffffff;
  color: var(--primary);
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.feature-text h4 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.feature-text span {
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.4;
  display: block;
}

/* Right Side: Form */
.signup-right {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 4rem);
  background-color: var(--surface);
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Watermark Footer */
.watermark-footer {
  position: absolute;
  bottom: 1.5rem;
  left: 4rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  opacity: 0.8;
  font-weight: 600;
  text-transform: uppercase;
  z-index: 10;
}

.signup-card {
  width: 100%;
  max-width: 480px;
  animation: fadeInRight 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInRight {
  0% { opacity: 0; transform: translateX(30px); }
  100% { opacity: 1; transform: translateX(0); }
}

.signup-header {
  margin-bottom: 2.5rem;
}

.signup-title {
  font-size: 2.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, #3a86cc 0%, #1e40af 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}

.signup-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Form Groups */
.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.half-width {
  flex: 1;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.form-group.focused .form-label {
  color: var(--primary);
}

.input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1.25rem;
  color: #94a3b8;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.toggle-password {
  position: absolute;
  right: 1.25rem;
  color: #94a3b8;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.toggle-password:hover {
  color: var(--primary);
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 3.25rem;
  background-color: var(--bg-color);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  font-size: 1rem;
  color: var(--text-main);
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-input::-ms-reveal,
.form-input::-ms-clear {
  display: none;
}

.form-input::placeholder {
  color: #94a3b8;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  background-color: var(--surface);
  box-shadow: 0 0 0 4px var(--primary-light);
}

/* Submit Button */
.btn-submit {
  width: 100%;
  padding: 1.125rem;
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
  box-shadow: 0 4px 6px rgba(58, 134, 204, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}

.btn-submit:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(58, 134, 204, 0.3);
}

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

/* Divider */
.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.5rem 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border);
}

.divider span {
  padding: 0 1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
}

/* Social Buttons */
.social-login {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.btn-social {
  width: 100%;
  padding: 0.875rem;
  background-color: var(--surface);
  color: var(--text-main);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}

.btn-social i {
  font-size: 1.15rem;
}

.btn-social:hover {
  background-color: var(--bg-color);
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

/* Footer link */
.signup-footer {
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.signup-footer a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.signup-footer a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
  .signup-left {
    padding: 3rem;
  }
  .left-content h1 {
    font-size: 2.75rem;
  }
  .signup-right {
    padding: 2rem;
  }
}

@media (max-width: 850px) {
  body {
    height: auto !important;
    overflow-y: auto !important;
  }
  
  .signup-left, .signup-right {
    overflow: visible !important;
  }

  .signup-page-wrapper {
    flex-direction: column;
  }
  
  .signup-left {
    padding: clamp(3rem, 10vw, 5rem) 2rem;
    align-items: center;
    text-align: center;
  }
  
  .signup-right {
    padding: 3rem 1.5rem;
    align-items: center;
  }

  .features-list {
    align-items: center;
  }

  .feature-item {
    text-align: left;
    width: 100%;
    max-width: 400px;
  }

  .signup-card {
    max-width: 100%;
  }
}

@media (max-width: 500px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  .left-content h1 {
    font-size: 2.25rem;
  }
  .navbar {
    padding: 1rem 1.5rem;
  }
}


.signup-popup {
  position: fixed;
  top: 30px;
  left: 50%;
  background-color: var(--surface);
  color: var(--text-main);
  padding: 16px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg), 0 10px 30px -5px rgba(16, 185, 129, 0.2);
  border-left: 5px solid var(--success);
  opacity: 0;
  transform: translate(-50%, -30px);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 9999;
}

.signup-popup i {
  color: var(--success);
  font-size: 1.25rem;
}

.signup-popup.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Professional Status Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  padding: 3rem 2.5rem;
  border-radius: 2rem;
  width: 90%;
  max-width: 440px;
  text-align: center;
  transform: scale(0.9) translateY(20px);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-icon {
  width: 80px;
  height: 80px;
  background: #ecfdf5;
  color: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1.5rem;
}

.modal-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.75rem;
  letter-spacing: -0.025em;
}

.modal-message {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.modal-btn {
  background: #3a86cc;
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 1rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.modal-btn:hover {
  background: #2c6ba6;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(58, 134, 204, 0.4);
}