:root {
  --primary: #00B0E3;
  --primary-dark: #0090BA;
  --secondary: #2A2559;
  --secondary-muted: #504B76;
  --secondary-light: #6F6C90;
  --bg: #FFFFFF;
  --bg-light: #F7F7F7;
  --surface: #FFFFFF;
  --border: rgba(42, 37, 89, 0.12);
  --border-light: rgba(42, 37, 89, 0.06);
  --text: #2A2559;
  --text-muted: #6F6C90;
  --text-light: #878698;
  --radius: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 3px rgba(42, 37, 89, 0.08);
  --shadow-md: 0 4px 16px rgba(42, 37, 89, 0.1);
  --shadow-lg: 0 8px 32px rgba(42, 37, 89, 0.12);
  --focus: 0 0 0 3px rgba(0, 176, 227, 0.25);
}

* {
  box-sizing: border-box;
}

.dh-auth-screen {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.dh-login-wrap {
  min-height: 100vh;
  display: flex;
}

.dh-auth-main {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* Left Panel - Branding */
.dh-auth-panel {
  flex: 0 0 50%;
  background: var(--secondary);
  color: #ffffff;
  padding: 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.dh-auth-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 70%, rgba(0, 176, 227, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

/* Decorative circles */
.dh-auth-panel::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 384px;
  height: 384px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  transform: translate(50%, 50%);
  pointer-events: none;
}

.dh-decor-circle {
  position: absolute;
  top: 80px;
  right: 80px;
  width: 128px;
  height: 128px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  pointer-events: none;
}

.dh-panel-content {
  position: relative;
  z-index: 1;
  max-width: 520px;
}

/* Logo */
.dh-brand-lockup {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 48px;
  font-size: 24px;
  font-weight: 600;
}

.dh-brand-logo {
  font-size: 28px;
  font-weight: 700;
}

.dh-brand-logo-white {
  color: #ffffff;
}

.dh-brand-logo-primary {
  color: var(--primary);
}

.dh-brand-plus {
  color: var(--primary);
  font-weight: 300;
  margin: 0 4px;
}

.dh-brand-name {
  font-weight: 600;
}

/* Hero Content */
.dh-hero-title {
  font-family: "Crimson Pro", Georgia, "Times New Roman", serif;
  font-size: 48px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 24px;
  color: #ffffff;
}

.dh-hero-text {
  font-size: 18px;
  line-height: 1.7;
  opacity: 0.8;
  margin: 0 0 48px;
  max-width: 480px;
}

/* Stats */
.dh-hero-stats {
  display: flex;
  align-items: center;
  gap: 48px;
}

.dh-stat-item {
  display: flex;
  flex-direction: column;
}

.dh-stat-value {
  font-family: "Crimson Pro", Georgia, "Times New Roman", serif;
  font-size: 40px;
  font-weight: 600;
  color: var(--primary);
  line-height: 1;
}

.dh-stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.6;
  margin-top: 8px;
}

.dh-stat-sep {
  width: 1px;
  height: 64px;
  background: rgba(255, 255, 255, 0.2);
}

/* Right Panel - Login */
.dh-login-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: var(--bg-light);
}

.dh-login-container {
  width: 100%;
  max-width: 420px;
}

/* Login Card */
.dh-login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.dh-login-header {
  text-align: center;
  margin-bottom: 32px;
}

.dh-login-card h2 {
  font-family: "Crimson Pro", Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--secondary);
  margin: 0 0 8px;
}

.dh-login-card > p,
.dh-login-header > p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* Account Type Buttons */
.dh-account-types {
  display: grid;
  gap: 16px;
}

.dh-chip {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: #ffffff;
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(42, 37, 89, 0.08);
}

.dh-chip:hover {
  border-color: var(--primary);
}

.dh-chip-ico {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.dh-chip-ico-primary {
  background: rgba(0, 176, 227, 0.1);
}

.dh-chip-ico-secondary {
  background: rgba(42, 37, 89, 0.1);
}

.dh-chip-content {
  flex: 1;
}

.dh-chip strong {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 4px;
  transition: color 0.2s ease;
}

.dh-chip:hover strong {
  color: var(--primary);
}

.dh-chip small {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
}

.dh-chip-arrow {
  color: var(--text-muted);
  font-size: 18px;
  transition: color 0.2s ease;
}

.dh-chip:hover .dh-chip-arrow {
  color: var(--primary);
}

/* Form styling for login form */
.dh-login-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 16px;
}

.dh-login-icon-primary {
  background: rgba(0, 176, 227, 0.1);
}

.dh-login-icon-secondary {
  background: rgba(42, 37, 89, 0.1);
}

.dh-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 24px;
  transition: color 0.2s ease;
}

.dh-back-link:hover {
  color: var(--secondary);
}

.dh-field {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  margin: 0 0 8px;
}

.dh-input {
  width: 100%;
  height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: all 0.15s ease;
  margin-bottom: 16px;
}

.dh-input::placeholder {
  color: var(--text-light);
}

.dh-input:hover {
  border-color: rgba(42, 37, 89, 0.25);
}

.dh-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--focus);
}

.dh-submit {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: var(--radius);
  background: var(--primary);
  color: #ffffff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 8px;
}

.dh-submit:hover {
  background: var(--primary-dark);
}

.dh-submit:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.dh-auth-alert {
  margin-bottom: 16px;
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(220, 53, 69, 0.05);
  border-left: 4px solid #dc3545;
  color: #dc3545;
  font-size: 14px;
}

.dh-forgot-link {
  display: block;
  text-align: right;
  font-size: 13px;
  color: var(--primary);
  text-decoration: none;
  margin-top: -8px;
  margin-bottom: 16px;
}

.dh-forgot-link:hover {
  text-decoration: underline;
}

/* Footer Links */
.dh-login-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  font-size: 12px;
}

.dh-login-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.dh-login-links a:hover {
  color: var(--primary);
}

.dh-login-links .dh-link-dot {
  color: var(--text-light);
}

.dh-muted-link {
  display: inline-block;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  margin-top: 16px;
}

.dh-muted-link:hover {
  color: var(--secondary);
  text-decoration: underline;
}

/* Security Badges */
.dh-security-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
  font-size: 12px;
  color: var(--text-muted);
}

.dh-badge {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dh-badge svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Mobile Styles */
@media (max-width: 1024px) {
  .dh-auth-main {
    flex-direction: column;
  }

  .dh-auth-panel {
    flex: none;
    padding: 40px 24px;
    min-height: auto;
  }

  .dh-hero-title {
    font-size: 32px;
  }

  .dh-hero-text {
    font-size: 16px;
    margin-bottom: 32px;
  }

  .dh-hero-stats {
    gap: 24px;
  }

  .dh-stat-value {
    font-size: 28px;
  }

  .dh-stat-sep {
    height: 48px;
  }

  .dh-decor-circle {
    display: none;
  }

  .dh-login-panel {
    padding: 24px;
  }

  .dh-login-card {
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .dh-auth-panel {
    padding: 32px 20px;
  }

  .dh-brand-lockup {
    font-size: 18px;
    margin-bottom: 24px;
  }

  .dh-brand-logo {
    font-size: 20px;
  }

  .dh-hero-title {
    font-size: 28px;
  }

  .dh-hero-stats {
    flex-wrap: wrap;
    gap: 16px;
  }

  .dh-stat-sep {
    display: none;
  }

  .dh-stat-item {
    flex: 0 0 calc(50% - 8px);
  }

  .dh-login-panel {
    padding: 20px 16px;
  }

  .dh-login-card {
    padding: 24px 20px;
  }

  .dh-chip {
    padding: 16px;
  }

  .dh-chip-ico {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .dh-chip strong {
    font-size: 16px;
  }

  .dh-chip small {
    font-size: 13px;
  }
}
