/* Luckymoose Auth - Login Page Styles (CSP-compliant, no external dependencies) */

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* System Font Stack (replaces Inter) */
html {
  -webkit-text-size-adjust: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Global Background with subtle abstract lines */
body {
  background-color: #0f172a;
  background-image: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
  background-size: cover;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

/* Background decorative lines */
.bg-lines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.bg-lines::before {
  content: '';
  position: absolute;
  width: 150%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  top: 30%;
  left: -20%;
  transform: rotate(25deg);
}

.bg-lines::after {
  content: '';
  position: absolute;
  width: 150%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  bottom: 20%;
  left: -20%;
  transform: rotate(-15deg);
}

/* Main Container */
.login-main {
  width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

/* Glassmorphism Card */
.glass-card {
  background: rgba(22, 25, 35, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  width: 100%;
  max-width: 420px;
  border-radius: 1rem;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

@media (min-width: 640px) {
  .glass-card {
    padding: 2.5rem;
  }
}

/* Card Header */
.card-header {
  text-align: center;
  margin-bottom: 2rem;
}

.card-title {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}

/* Logo Container */
.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}

.logo-svg {
  width: 150px;
  height: 150px;
  object-fit: contain;
}

.card-subtitle {
  color: #9ca3af;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Error Message */
.error-message {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid #ef4444;
  color: #ef4444;
  border-radius: 0.5rem;
  padding: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Form */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Input Field Container */
.input-field {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid #2e3240;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  background: rgba(0, 0, 0, 0.3);
}

.input-field:focus-within {
  box-shadow: 0 0 0 2px rgba(106, 151, 219, 0.3);
  border-color: #6a97db;
}

/* Input Icon */
.input-icon {
  padding-left: 1rem;
  color: #6b7280;
  display: flex;
  align-items: center;
}

.input-icon svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

/* Text Input */
.text-input {
  width: 100%;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.875rem;
  padding: 0.75rem;
  padding-left: 0.75rem;
  padding-right: 1rem;
  outline: none;
}

.text-input::placeholder {
  color: #6b7280;
}

.text-input:focus {
  outline: none;
  box-shadow: none;
}

/* Password Input (extra padding for toggle button) */
.password-input {
  padding-right: 2.5rem;
}

/* Password Toggle Button */
.password-toggle {
  position: absolute;
  right: 1rem;
  color: #6b7280;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.password-toggle:hover {
  color: #d1d5db;
}

.password-toggle:focus {
  outline: none;
}

.password-toggle svg {
  width: 1.125rem;
  height: 1.125rem;
  fill: currentColor;
}

/* Remember Me */
.remember-me {
  display: flex;
  align-items: center;
}

.remember-me input[type=checkbox] {
  width: 1rem;
  height: 1rem;
  background-color: #181b24;
  border: 1px solid #4b5563;
  border-radius: 0.25rem;
  cursor: pointer;
  accent-color: #6a97db;
}

.remember-me input[type=checkbox]:focus {
  outline: none;
  box-shadow: 0 0 0 1px #6a97db;
}

.remember-me label {
  margin-left: 0.5rem;
  font-size: 0.875rem;
  color: #d1d5db;
  cursor: pointer;
}

/* Submit Button */
.submit-button {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  background-color: #6a97db;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 10px 15px -3px rgba(30, 64, 175, 0.2);
}

.submit-button:hover {
  background-color: #4a77bb;
}

.submit-button:focus {
  outline: none;
  box-shadow: 0 0 0 2px #0f172a, 0 0 0 4px #6a97db;
}

.submit-button svg {
  width: 0.75rem;
  height: 0.75rem;
  fill: currentColor;
}

/* Footer */
.card-footer {
  margin-top: 2rem;
  text-align: center;
}

.version-text {
  font-size: 0.75rem;
  color: #4b5563;
  font-weight: 500;
  letter-spacing: 0.05em;
}
