/* Professional Login Theme */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --text-primary: #1a1a1a;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --border-color: #e5e7eb;
  --accent-blue: #3b82f6;
  --accent-blue-light: #60a5fa;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  
  /* Legacy support */
  --pure-black: #1a1a1a;
  --charcoal: #1a1a1a;
  --dark-gray: #2d2d2d;
  --medium-gray: #6b7280;
  --light-gray: #6b7280;
  --pale-gray: #9ca3af;
  --off-white: #f8f9fa;
  --pure-white: #ffffff;
  --accent-white: #ffffff;
  --accent-gray: #6b7280;
  --accent-light: #e5e7eb;
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-strong: 0 10px 15px rgba(0, 0, 0, 0.1);
}

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

html, body {
  height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  background: var(--bg-secondary);
  color: var(--text-primary);
  overflow-x: hidden;
  position: relative;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Professional Design - Remove all decorative elements */
.coffee-bg,
.steam,
.coffee-bean {
  display: none !important;
}

/* Main Login Container */
.login-container {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-card {
  background: var(--bg-primary);
  border-radius: 12px;
  padding: 48px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  position: relative;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-blue);
}

/* Brand Section */
.brand-section {
  text-align: center;
  margin-bottom: 32px;
}

.logo-container {
  position: relative;
  display: inline-block;
  margin-bottom: 16px;
}

.coffee-logo {
  font-size: 48px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  color: var(--text-primary);
}

.logo-glow {
  display: none;
}

.brand-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.brand-subtitle {
  font-size: 16px;
  color: var(--light-gray);
  font-weight: 400;
  margin-bottom: 0;
}

/* Welcome Section */
.welcome-section {
  text-align: center;
  margin-bottom: 32px;
}

.welcome-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--pure-black);
  margin-bottom: 8px;
}

.welcome-text {
  font-size: 16px;
  color: var(--light-gray);
  font-weight: 400;
}

/* Form Styles */
.login-form {
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

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

.input-icon {
  position: absolute;
  left: 16px;
  font-size: 18px;
  color: var(--light-gray);
  z-index: 2;
  transition: all 0.3s ease;
}

.input-wrapper input {
  width: 100%;
  padding: 12px 16px 12px 48px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.input-wrapper input::placeholder {
  color: var(--pale-gray);
  opacity: 0.8;
}

.input-wrapper input:focus {
  outline: none;
  border-color: var(--accent-blue);
  background: var(--bg-primary);
  box-shadow: 0 0 0 3px var(--accent-blue-lightest);
}

.input-wrapper input:focus + .input-focus-border {
  opacity: 1;
  transform: scaleX(1);
}

.input-wrapper input:focus ~ .input-icon {
  color: var(--accent-blue);
}

.input-focus-border {
  display: none;
}

/* Professional Login Button */
.login-btn {
  width: 100%;
  padding: 12px 24px;
  background: var(--accent-blue);
  border: 1px solid var(--accent-blue);
  border-radius: 8px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.login-btn:hover {
  background: var(--accent-blue-light);
  border-color: var(--accent-blue-light);
  box-shadow: var(--shadow-md);
}

.login-btn:active {
  transform: scale(0.98);
}


.btn-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 8px;
}

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

/* Error Message - Monochrome */
.error-message {
  background: var(--off-white);
  border: 1px solid var(--light-gray);
  color: var(--pure-black);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  margin-top: 16px;
}

/* Footer */
.login-footer {
  text-align: center;
  margin-top: 32px;
}

.footer-text {
  font-size: 14px;
  color: var(--light-gray);
  margin-bottom: 12px;
}

.footer-decoration {
  font-size: 14px;
  opacity: 0.6;
  color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 480px) {
  .login-card {
    padding: 32px 24px;
    margin: 16px;
  }
  
  .brand-title {
    font-size: 28px;
  }
  
  .welcome-title {
    font-size: 20px;
  }
  
  .coffee-logo {
    font-size: 40px;
  }
}

/* Loading State */
.login-btn.loading .btn-text {
  opacity: 0;
}

.login-btn.loading .btn-spinner {
  display: inline-block;
}

/* Focus States for Accessibility - Monochrome */
.login-btn:focus-visible {
  outline: 3px solid var(--pure-black);
  outline-offset: 2px;
}

.input-wrapper input:focus-visible {
  outline: 3px solid var(--pure-black);
  outline-offset: 2px;
}
