body.login {
  /* Colors */
  --primary-color: #667eea;
  --primary-hover: #5a6fd8;
  --secondary-color: #764ba2;
  --background: #1e1e2d;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-hover: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.1);
  --border-focus: rgba(102, 126, 234, 0.5);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);
  --error-color: #ef4444;
  --success-color: #22c55e;
  --warning-color: #f59e0b;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Borders */
  --border-radius-sm: 0.375rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 0.75rem;
  --border-radius-xl: 1rem;
  
  /* Shadows */
  --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);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Animation */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;
}

@keyframes hueShift {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(360deg);
  }
}

/* Reset and base styles */
* {
  box-sizing: border-box;
}

body.login {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--background) 0%, #1a1a3a 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
  animation: hueShift 5s linear infinite;
}

body.login::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 25% 25%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 75% 75%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Login container */
#login {
  background: var(--surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-xl);
  padding: var(--spacing-2xl);
  width: 100%;
  max-width: 400px;
  margin: var(--spacing-lg);
  position: relative;
  z-index: 1;
}

/* Logo */
.wp-login-logo {
  text-align: center;
}

.wp-login-logo a {
  display: inline-block;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  text-indent: -9999px;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  transition: transform var(--transition-normal);
}

.wp-login-logo a:hover {
  transform: scale(1.05);
}

/* Messages */
.message, .notice-error {
  background: rgba(102, 126, 234, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: var(--border-radius-md);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  text-align: center;
}
.notice-error {
  background: var(--error-color);
}

/* Form elements */
#loginform label {
  display: block;
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--spacing-xs);
  color: var(--text-primary);
  font-size: var(--font-size-sm);
}

/* Input styles */
.input,
input[type="text"],
input[type="password"],
input[type="email"] {
  width: 100%;
  padding: var(--spacing-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-md);
  color: var(--text-primary);
  font-size: var(--font-size-base);
  font-family: var(--font-family);
  transition: all var(--transition-normal);
  outline: none;
}

.input:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px var(--border-focus);
  transform: translateY(-1px);
}

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

/* Password field wrapper */
.user-pass-wrap {
  position: relative;
}

.wp-pwd {
  position: relative;
  display: flex;
  align-items: center;
}

.wp-pwd .password-input {
  padding-right: 3rem;
}

.wp-hide-pw {
  position: absolute;
  right: var(--spacing-xs);
  top: 50%;
  transform: translateY(-50%);
  background: transparent !important;
  border: none !important;
  color: var(--text-muted) !important;
  padding: var(--spacing-xs) !important;
  border-radius: var(--border-radius-sm) !important;
  cursor: pointer !important;
  transition: color var(--transition-fast) !important;
  box-shadow: none !important;
  width: auto !important;
  height: auto !important;
}

.wp-hide-pw:hover {
  color: var(--text-primary) !important;
  background: var(--surface-hover) !important;
}

.wp-hide-pw .dashicons {
  width: 18px;
  height: 18px;
  font-size: 18px;
}

/* Submit button */
.button-primary {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border: none;
  border-radius: var(--border-radius-md);
  color: white;
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
  padding: var(--spacing-md) var(--spacing-lg);
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--primary-hover), var(--secondary-color));
}

.button-primary:active {
  transform: translateY(0);
}

.button-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Checkbox styles */
input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-sm);
  margin-right: var(--spacing-xs);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

input[type="checkbox"]:checked {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

input[type="checkbox"]:checked::before {
  content: '✓';
  color: white;
  font-size: 12px;
  font-weight: bold;
}

input[type="checkbox"]:hover {
  border-color: var(--primary-color);
  background: rgba(102, 126, 234, 0.1);
}

/* Remember me */
.forgetmenot {
  display: flex;
  align-items: center;
  margin: var(--spacing-lg) 0;
}

.forgetmenot label {
  margin: 0 0 0 var(--spacing-xs);
  font-weight: var(--font-weight-normal);
  cursor: pointer;
  color: var(--text-secondary);
}

/* Navigation links */
#nav {
  text-align: center;
  margin: var(--spacing-lg) 0;
}

#nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--font-size-sm);
  transition: color var(--transition-fast);
}

#nav a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Back to blog */
#backtoblog {
  text-align: center;
  margin-top: var(--spacing-xl);
}

#backtoblog a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: var(--font-size-sm);
  transition: color var(--transition-fast);
}

#backtoblog a:hover {
  color: var(--text-primary);
}

/* Language switcher */
.language-switcher {
  position: fixed;
  bottom: var(--spacing-lg);
  left: var(--spacing-lg);
  z-index: 10;
}

.language-switcher form {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  background: var(--surface);
  backdrop-filter: blur(10px);
  padding: var(--spacing-sm);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border);
}

.language-switcher label {
  color: var(--text-muted);
  margin: 0;
}

.language-switcher select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  padding: var(--spacing-xs) var(--spacing-sm);
  font-size: var(--font-size-sm);
  outline: none;
}

.language-switcher .button {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius-sm);
  font-size: var(--font-size-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.language-switcher .button:hover {
  background: var(--primary-hover);
}

/* Patreon button */
.ptrn-button {
  display: block;
  margin: var(--spacing-lg) 0;
  text-align: center;
  transition: transform var(--transition-normal);
}

.ptrn-button:hover {
  transform: translateY(-2px);
}

.ptrn-button img {
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition-normal);
}

.ptrn-button:hover img {
  box-shadow: var(--shadow-lg);
}

/* Turnstile CAPTCHA */
.cf-turnstile {
}

/* Loading states */
.button-primary.loading {
  position: relative;
  color: transparent;
}

.button-primary.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive design */
@media (max-width: 480px) {
  #login {
    margin: var(--spacing-md);
    padding: var(--spacing-lg);
    max-width: none;
  }
  
  .language-switcher {
    position: static;
    margin-top: var(--spacing-lg);
    text-align: center;
  }
  
  .language-switcher form {
    justify-content: center;
  }
}

/* RTL Support */
body.rtl .wp-pwd .password-input {
  padding-left: 3rem;
  padding-right: var(--spacing-md);
}

body.rtl .wp-hide-pw {
  right: auto;
  left: var(--spacing-xs);
}

body.rtl .forgetmenot label {
  margin: 0 var(--spacing-xs) 0 0;
}

body.rtl .language-switcher {
  left: auto;
  right: var(--spacing-lg);
}

/* Focus indicators for accessibility */
a:focus,
button:focus,
input:focus,
select:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --surface: rgba(255, 255, 255, 0.1);
    --border: rgba(255, 255, 255, 0.3);
    --text-secondary: rgba(255, 255, 255, 0.9);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.screen-reader-text, .language-switcher, .cf-turnstile-br, .wp-login-logo {
    display: none;
}