:root {
  --background: hsl(35, 25%, 97%);
  --foreground: hsl(30, 20%, 15%);
  --card: hsl(0, 0%, 100%);
  --muted: hsl(35, 15%, 92%);
  --muted-foreground: hsl(30, 10%, 45%);
  --border: hsl(35, 15%, 88%);
  --input-bg: hsl(35, 20%, 98%);
  --input-border: hsl(35, 15%, 85%);
  
  /* Auditor Theme - Warm Amber */
  --auditor: hsl(38, 92%, 50%);
  --auditor-dark: hsl(38, 92%, 42%);
  --auditor-light: hsl(38, 95%, 65%);
  --auditor-glow: hsla(38, 92%, 50%, 0.3);
  
  --primary: hsl(220, 70%, 45%);
  --destructive: hsl(0, 75%, 55%);
  
  --radius: 1rem;
  --shadow-sm: 0 2px 8px -2px hsla(30, 30%, 20%, 0.08);
  --shadow-md: 0 8px 24px -8px hsla(30, 30%, 20%, 0.12);
  --shadow-lg: 0 16px 48px -12px hsla(30, 30%, 20%, 0.18);
  --shadow-glow: 0 0 40px -10px var(--auditor-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 - Brand */
.brand-panel {
  flex: 1;
  background: linear-gradient(135deg, hsl(38, 85%, 52%) 0%, hsl(28, 90%, 48%) 50%, hsl(20, 85%, 45%) 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;
  }
}

/* Decorative elements */
.brand-panel::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 70%, hsla(0, 0%, 100%, 0.1) 0%, transparent 50%);
  animation: rotate 30s linear infinite;
}

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

.floating-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.shape {
  position: absolute;
  background: hsla(0, 0%, 100%, 0.1);
  border-radius: 50%;
}

.shape-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  right: -100px;
  animation: float1 8s ease-in-out infinite;
}

.shape-2 {
  width: 200px;
  height: 200px;
  bottom: 10%;
  left: -50px;
  animation: float2 10s ease-in-out infinite;
}

.shape-3 {
  width: 150px;
  height: 150px;
  top: 40%;
  right: 10%;
  animation: float3 12s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, 30px) scale(1.05); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.1); }
}

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

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

.brand-logo {
  width: 120px;
  height: 120px;
  background: hsla(0, 0%, 100%, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  border: 2px solid hsla(0, 0%, 100%, 0.3);
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 30px hsla(0, 0%, 100%, 0.2); }
  50% { box-shadow: 0 0 50px hsla(0, 0%, 100%, 0.4); }
}

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

.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: 2rem;
}

.brand-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: hsla(0, 0%, 100%, 0.15);
  backdrop-filter: blur(5px);
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid hsla(0, 0%, 100%, 0.2);
}

.feature-item i {
  font-size: 1.25rem;
}

.feature-item span {
  font-size: 0.9375rem;
  font-weight: 500;
}

/* Right 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;
}

/* 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(--auditor) 0%, var(--auditor-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-glow);
}

.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(--auditor-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(--auditor-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(--auditor) 0%, var(--auditor-dark) 100%);
  color: white;
  padding: 0.375rem 0.875rem;
  border-radius: 2rem;
  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(--auditor);
  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(--auditor);
  background: white;
  box-shadow: 0 0 0 4px var(--auditor-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(--auditor);
}

.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(--auditor);
}

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

.captcha-display {
  flex: 1;
  background: linear-gradient(135deg, hsl(35, 30%, 95%) 0%, hsl(40, 25%, 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(--auditor-dark);
  user-select: none;
  position: relative;
  overflow: hidden;
}

.captcha-display::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    hsla(38, 50%, 50%, 0.05) 10px,
    hsla(38, 50%, 50%, 0.05) 20px
  );
}

.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(--auditor);
  cursor: pointer;
  transition: all 0.2s ease;
}

.refresh-btn:hover {
  background: var(--auditor);
  border-color: var(--auditor);
  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(--auditor) 0%, var(--auditor-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(--auditor-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;
}

/* 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;
  }
}