:root {
  --background: hsl(180, 15%, 97%);
  --foreground: hsl(180, 20%, 12%);
  --card: hsl(0, 0%, 100%);
  --muted: hsl(180, 10%, 92%);
  --muted-foreground: hsl(180, 8%, 45%);
  --border: hsl(180, 12%, 88%);
  --input-bg: hsl(180, 15%, 98%);
  --input-border: hsl(180, 12%, 85%);
  
  /* Auditee Theme - Teal */
  --auditee: hsl(174, 72%, 40%);
  --auditee-dark: hsl(174, 72%, 32%);
  --auditee-light: hsl(174, 65%, 55%);
  --auditee-glow: hsla(174, 72%, 40%, 0.25);
  
  --primary: hsl(220, 70%, 45%);
  --destructive: hsl(0, 75%, 55%);
  
  --radius: 1rem;
  --shadow-sm: 0 2px 8px -2px hsla(180, 30%, 20%, 0.08);
  --shadow-md: 0 8px 24px -8px hsla(180, 30%, 20%, 0.12);
  --shadow-lg: 0 16px 48px -12px hsla(180, 30%, 20%, 0.18);
  --shadow-glow: 0 0 40px -10px var(--auditee-glow);
}

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

body {
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Split Layout */
.split-container {
  display: flex;
  min-height: 100vh;
}

/* Left Panel - Form */
.form-panel {
  flex: 1;
  min-width: 0;
  background: var(--background);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  position: relative;
}

@media (min-width: 1024px) {
  .form-panel {
    padding: 3rem 4rem;
  }
}

.form-wrapper {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

/* Right Panel - Brand */
.brand-panel {
  flex: 1;
  background: linear-gradient(160deg, hsl(174, 65%, 45%) 0%, hsl(174, 72%, 38%) 40%, hsl(180, 65%, 32%) 100%);
  position: relative;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .brand-panel {
    display: flex;
  }
}

/* Geometric Pattern */
.geometric-pattern {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hex {
  position: absolute;
  width: 120px;
  height: 140px;
  background: hsla(0, 0%, 100%, 0.06);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.hex-1 {
  top: 5%;
  right: 15%;
  animation: hexFloat1 10s ease-in-out infinite;
}

.hex-2 {
  top: 35%;
  left: 8%;
  width: 80px;
  height: 92px;
  animation: hexFloat2 12s ease-in-out infinite;
}

.hex-3 {
  bottom: 20%;
  right: 5%;
  width: 100px;
  height: 116px;
  animation: hexFloat3 8s ease-in-out infinite;
}

.hex-4 {
  bottom: 8%;
  left: 20%;
  width: 60px;
  height: 70px;
  animation: hexFloat1 14s ease-in-out infinite reverse;
}

@keyframes hexFloat1 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(10deg); }
}

@keyframes hexFloat2 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(25px) rotate(-8deg); }
}

@keyframes hexFloat3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-15px, 20px); }
}

/* Wave decoration */
.wave-decoration {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  overflow: hidden;
}

.wave {
  position: absolute;
  bottom: -20px;
  left: -5%;
  width: 110%;
  height: 100px;
  background: hsla(0, 0%, 100%, 0.05);
  border-radius: 50% 50% 0 0;
  animation: wave 8s ease-in-out infinite;
}

.wave:nth-child(2) {
  bottom: -10px;
  height: 80px;
  background: hsla(0, 0%, 100%, 0.03);
  animation-delay: -2s;
  animation-duration: 10s;
}

@keyframes wave {
  0%, 100% { transform: translateX(0) scaleY(1); }
  50% { transform: translateX(2%) scaleY(1.1); }
}

.brand-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: white;
}

.brand-logo {
  width: 130px;
  height: 130px;
  background: hsla(0, 0%, 100%, 0.15);
  background-color: white !important;
  backdrop-filter: blur(10px);
  border-radius: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  border: 2px solid hsla(0, 0%, 100%, 0.25);
  box-shadow: 0 20px 40px -10px hsla(180, 50%, 20%, 0.3);
  transform: rotate(-5deg);
  transition: transform 0.3s ease;
}

.brand-logo:hover {
  transform: rotate(0deg) scale(1.05);
}

.brand-logo i {
  font-size: 3.5rem;
}

.brand-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px hsla(0, 0%, 0%, 0.2);
}

.brand-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  opacity: 0.95;
  margin-bottom: 2.5rem;
}

.brand-description {
  max-width: 320px;
  margin: 0 auto;
  font-size: 0.9375rem;
  line-height: 1.7;
  opacity: 0.9;
  background: hsla(0, 0%, 100%, 0.1);
  backdrop-filter: blur(5px);
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid hsla(0, 0%, 100%, 0.15);
}

.brand-description i {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

/* Mobile Header */
.mobile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

@media (min-width: 1024px) {
  .mobile-header {
    display: none;
  }
}

.mobile-logo {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--auditee) 0%, var(--auditee-dark) 100%);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-glow);
  transform: rotate(-5deg);
}

.mobile-logo i {
  font-size: 2rem;
  color: white;
}

.mobile-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
  text-align: center;
}

.mobile-subtitle {
  font-size: 0.875rem;
  color: var(--auditee-dark);
  font-weight: 600;
}

/* Back Button */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2rem;
  transition: all 0.2s ease;
}

.back-link:hover {
  color: var(--auditee-dark);
  transform: translateX(-4px);
}

.back-link i {
  font-size: 0.75rem;
}

/* Form Header */
.form-header {
  margin-bottom: 2rem;
}

.form-header h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.form-header p {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}

.form-header .role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--auditee) 0%, var(--auditee-dark) 100%);
  color: white;
  padding: 0.375rem 0.875rem;
  border-radius: 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Form Card */
.form-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

/* Form Groups */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.625rem;
}

.form-group label i {
  color: var(--auditee);
  font-size: 0.875rem;
}

.input-wrapper {
  position: relative;
}

.form-control {
  width: 100%;
  padding: 0.9375rem 1rem;
  padding-left: 3rem;
  border: 2px solid var(--border);
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  font-family: inherit;
  background: var(--input-bg);
  color: var(--foreground);
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--auditee);
  background: white;
  box-shadow: 0 0 0 4px var(--auditee-glow);
}

.form-control::placeholder {
  color: var(--muted-foreground);
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-foreground);
  font-size: 1rem;
  transition: color 0.2s ease;
}

.form-control:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
  color: var(--auditee);
}

.password-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.2s ease;
}

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

/* Captcha */
.captcha-container {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.captcha-display {
  flex: 1;
  background: linear-gradient(135deg, hsl(180, 20%, 95%) 0%, hsl(175, 20%, 92%) 100%);
  border: 2px dashed var(--border);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Courier New', monospace;
  font-size: 1.75rem;
  font-weight: bold;
  letter-spacing: 6px;
  color: var(--auditee-dark);
  user-select: none;
  position: relative;
  overflow: hidden;
}

.captcha-display::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 50%, hsla(174, 50%, 50%, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, hsla(174, 50%, 50%, 0.08) 0%, transparent 50%);
}

.captcha-display span {
  position: relative;
  z-index: 1;
}

.refresh-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 0.75rem;
  color: var(--auditee);
  cursor: pointer;
  transition: all 0.2s ease;
}

.refresh-btn:hover {
  background: var(--auditee);
  border-color: var(--auditee);
  color: white;
  transform: rotate(180deg);
}

.refresh-btn i {
  font-size: 1.125rem;
}


/* Submit Button */
.btn-submit {
  width: 100%;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--auditee) 0%, var(--auditee-dark) 100%);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, hsla(0, 0%, 100%, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-submit:hover::before {
  left: 100%;
}

.btn-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px var(--auditee-glow);
}

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

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Footer */
.form-footer {
  text-align: center;
  margin-top: 2rem;
  color: var(--muted-foreground);
  font-size: 0.75rem;
}

/* Additional Info Card */
.info-card {
  background: linear-gradient(135deg, hsla(174, 50%, 95%, 1) 0%, hsla(180, 40%, 92%, 1) 100%);
  border: 1px solid hsla(174, 40%, 85%, 1);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-top: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.info-card i {
  color: var(--auditee);
  font-size: 1.125rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.info-card-content {
  font-size: 0.8125rem;
  color: var(--auditee-dark);
  line-height: 1.5;
}

.info-card-content strong {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 480px) {
  .form-panel {
    padding: 1.5rem;
  }

  .form-card {
    padding: 1.5rem;
  }

  .form-header h1 {
    font-size: 1.5rem;
  }

  .captcha-display {
    font-size: 1.5rem;
    letter-spacing: 4px;
  }
}