/* Reggie Login - Light Theme */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f7f7f8;
  --surface-hover: #f0f0f2;
  --surface-border: #e5e5e7;
  --text: #1a1a1a;
  --text-muted: #6b6b7b;
  --text-dim: #9b9bab;
  --primary: #c96442;
  --primary-hover: #b5583a;
  --primary-light: rgba(201, 100, 66, 0.1);
  --error: #dc2626;
  --radius: 14px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html, body {
  height: 100%;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.login-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfc 42%, #f7f7f8 100%);
}

.glow { display: none; }

.login-container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 40px 32px 32px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08), 0 2px 10px rgba(15, 23, 42, 0.04);
  animation: cardIn 0.45s ease-out;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-logo {
  text-align: center;
  margin-bottom: 24px;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--surface-border);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.login-title {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 6px;
}

.login-subtitle {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.input-group { margin-bottom: 20px; }

.input-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper input {
  width: 100%;
  padding: 12px 44px 12px 14px;
  background: var(--surface-alt);
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.input-wrapper input::placeholder { color: var(--text-dim); }

.input-wrapper input:focus {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.toggle-pw {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.toggle-pw:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.error-msg {
  background: rgba(220, 38, 38, 0.07);
  border: 1px solid rgba(220, 38, 38, 0.18);
  color: var(--error);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.submit-btn {
  width: 100%;
  min-height: 46px;
  padding: 12px 16px;
  background: #111111;
  border: none;
  border-radius: 10px;
  color: #ffffff;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s, opacity 0.2s;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
  position: relative;
}

.submit-btn:hover {
  background: #292929;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.2);
}

.submit-btn:active { transform: translateY(0); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.microsoft-mark {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.btn-loader {
  display: inline-flex;
  align-items: center;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.access-note {
  margin-top: 20px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

.login-footer {
  text-align: center;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 12px;
}
