:root {
  --tl-primary: #0B5FFF;
  --tl-primary-hover: #084BCC;
  --tl-secondary: #FF6B00;
  --tl-bg-dark: #111827;
  --tl-bg-darker: #0B0F19;
  --tl-text-light: #F3F4F6;
  --tl-text-muted: #9CA3AF;
  --tl-border: #374151;
  --tl-danger: #EF4444;
}

/* Dashboard Full-Screen Overlay */
.tl-auth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--tl-bg-darker);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', 'Roboto', sans-serif;
  color: var(--tl-text-light);
  opacity: 1;
  transition: opacity 0.5s ease;
}

.tl-auth-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.tl-auth-card {
  background: rgba(17, 24, 39, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.tl-auth-card:hover {
  border-color: rgba(11, 95, 255, 0.3);
}

.tl-auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.tl-auth-logo {
  height: 48px;
  margin-bottom: 16px;
}

.tl-auth-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #fff;
}

.tl-auth-subtitle {
  font-size: 14px;
  color: var(--tl-text-muted);
  margin: 0;
}

.tl-auth-form-group {
  margin-bottom: 20px;
  position: relative;
}

.tl-auth-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--tl-text-light);
}

.tl-auth-input {
  width: 100%;
  padding: 12px 16px;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--tl-border);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.tl-auth-input:focus {
  outline: none;
  border-color: var(--tl-primary);
  box-shadow: 0 0 0 3px rgba(11, 95, 255, 0.2);
}

.tl-auth-btn {
  width: 100%;
  padding: 12px;
  background-color: var(--tl-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tl-auth-btn:hover {
  background-color: var(--tl-primary-hover);
}

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

.tl-auth-btn:disabled {
  background-color: var(--tl-border);
  cursor: not-allowed;
  transform: none;
}

.tl-auth-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: tl-spin 0.8s linear infinite;
  display: none;
}

.tl-auth-btn.loading .tl-auth-spinner {
  display: block;
}

.tl-auth-btn.loading .tl-auth-btn-text {
  display: none;
}

@keyframes tl-spin {
  to { transform: rotate(360deg); }
}

.tl-auth-error {
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--tl-danger);
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 20px;
  display: none;
}

.tl-auth-error.visible {
  display: block;
}

.tl-auth-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-size: 13px;
}

.tl-auth-checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  color: var(--tl-text-muted);
}

.tl-auth-checkbox {
  margin-right: 8px;
  accent-color: var(--tl-primary);
}

.tl-auth-link {
  color: var(--tl-primary);
  text-decoration: none;
}

.tl-auth-link:hover {
  text-decoration: underline;
}

.tl-auth-password-toggle {
  position: absolute;
  right: 12px;
  top: 36px;
  background: none;
  border: none;
  color: var(--tl-text-muted);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tl-auth-password-toggle:hover {
  color: var(--tl-text-light);
}

/* Main Storefront Modal overrides */
.tl-storefront-modal {
  background-color: rgba(0, 0, 0, 0.7);
}
.tl-storefront-modal .tl-auth-card {
  background: #fff;
  border: none;
  color: #111827;
}
.tl-storefront-modal .tl-auth-title {
  color: #111827;
}
.tl-storefront-modal .tl-auth-input {
  background-color: #f9fafb;
  border: 1px solid #d1d5db;
  color: #111827;
}
.tl-storefront-modal .tl-auth-label {
  color: #374151;
}
.tl-storefront-modal .tl-auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  color: #9ca3af;
  cursor: pointer;
}
.tl-storefront-modal .tl-auth-close:hover {
  color: #111827;
}
