/**
 * TFAST FinCore — Enterprise Auth Styling
 * Designed for TFAST Digital Agency
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --primary-color: #1565D8;
  --primary-hover: #0F4EB8;
  --secondary-color: #2563EB;
  --accent-emerald: #10B981;
  --bg-gradient-start: #070E1B;
  --bg-gradient-mid: #0B1727;
  --bg-gradient-end: #0F213A;
  --card-bg: rgba(255, 255, 255, 0.98);
  --card-border: rgba(226, 232, 240, 0.85);
  --text-main: #0F172A;
  --text-muted: #64748B;
  --radius-lg: 16px;
  --radius-md: 10px;
}

* {
  box-sizing: border-box;
}

body {
  background: 
    radial-gradient(circle at 10% 20%, rgba(79, 70, 229, 0.22) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(37, 99, 235, 0.2) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
    linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 50%, var(--bg-gradient-end) 100%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
}

/* Subtle background tech grid lines */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

#app {
  width: 100%;
  position: relative;
  z-index: 1;
  padding: 2rem 1rem;
}

/* Auth Card Container */
.card-signin {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  box-shadow: 
    0 20px 40px -15px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 1px 3px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(12px);
  padding: 2.25rem 2.25rem 1.75rem;
  max-width: 480px;
  margin: 0 auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-signup {
  max-width: 840px !important;
}

.card-signin:hover {
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.2);
}

.logo-wrapper {
  text-align: center;
  margin-bottom: 1.5rem;
}

.logo {
  max-width: 240px;
  height: auto;
  display: inline-block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.06));
}

.auth-heading {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1e1b4b;
  text-align: center;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.auth-subheading {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 1.75rem;
}

/* Inputs */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.4rem;
  display: block;
}

.form-control {
  height: 48px;
  border-radius: var(--radius-md);
  border: 1.5px solid #cbd5e1;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: #0f172a;
  background-color: #ffffff;
  transition: all 0.2s ease-in-out;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3.5px rgba(79, 70, 229, 0.18);
  outline: none;
  background-color: #ffffff;
}

.form-control::placeholder {
  color: #94a3b8;
  font-size: 0.88rem;
}

/* Submit Button */
.btn-auth-primary,
.btn-primary,
.btn-login {
  height: 48px;
  background: linear-gradient(135deg, #1565D8 0%, #2563EB 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.96rem !important;
  letter-spacing: 0.02em;
  border: none !important;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 4px 14px rgba(21, 101, 216, 0.35) !important;
  cursor: pointer;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  margin-top: 1.25rem;
  text-decoration: none !important;
}

.btn-auth-primary:hover,
.btn-primary:hover,
.btn-login:hover {
  background: linear-gradient(135deg, #0F4EB8 0%, #1D4ED8 100%) !important;
  box-shadow: 0 6px 20px rgba(21, 101, 216, 0.5) !important;
  transform: translateY(-1px);
  color: #ffffff !important;
}

.btn-auth-primary:active,
.btn-primary:active,
.btn-login:active {
  transform: translateY(0);
}

/* Remember me & links */
.auth-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

.custom-checkbox .custom-control-label {
  color: #475569;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}

.auth-link {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.auth-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Security Badges */
.auth-security-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid #f1f5f9;
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
}

.security-badge-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.security-badge-item svg {
  width: 14px;
  height: 14px;
  fill: var(--accent-emerald);
}

/* Footer credit */
.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 500;
}

.auth-footer a {
  color: #cbd5e1;
  text-decoration: none;
}

.auth-footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Alert styles */
.alert {
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}

/* Demo Switcher & Docs Bar */
.demo-quick-box {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 0.85rem;
  margin-top: 1.25rem;
  text-align: center;
}

.demo-quick-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #475569;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.demo-pills {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  flex-wrap: wrap;
}

.demo-pill-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.demo-pill-btn:hover {
  background: #f1f5f9;
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-1px);
}

.demo-docs-bar {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid #e2e8f0;
  font-size: 0.76rem;
}

.demo-docs-bar a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
}

.demo-docs-bar a:hover {
  text-decoration: underline;
}