/* AREYLight AI Custom White / Light Theme & Centered Login Design */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

/* Global Font Settings */
body, .ant-typography, .ant-btn, .ant-input, .ant-menu, .ant-card-head-title, .ant-table {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

h1, h2, h3, h4, h5, .ant-card-head-title {
  font-family: 'Space Grotesk', sans-serif !important;
}

/* ============================================================
   AREYLIGHT AI - WHITE / LIGHT THEME CENTERED LOGIN PAGE
   ============================================================ */
html, body {
  height: 100%;
}

body.areylight-login-view {
  background-color: #f8fafc !important;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(0, 212, 255, 0.1) 0%, transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(2, 132, 199, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 0% 100%, rgba(16, 185, 129, 0.05) 0%, transparent 45%),
    radial-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px) !important;
  background-size: 100% 100%, 100% 100%, 100% 100%, 28px 28px !important;
  min-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  overflow-x: hidden !important;
  margin: 0 !important;
  padding: 24px !important;
  box-sizing: border-box !important;
}

/* Ensure React #root fills viewport and flex-centers content */
body.areylight-login-view #root {
  width: 100% !important;
  min-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
}

/* Center Ant Design Row & Remove default offset shifts */
body.areylight-login-view .ant-row {
  margin: 0 auto !important;
  width: 100% !important;
  max-width: 440px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
}

body.areylight-login-view .ant-col,
body.areylight-login-view .ant-col-8,
body.areylight-login-view .ant-col-offset-8,
body.areylight-login-view [class*="ant-col-offset-"] {
  width: 100% !important;
  max-width: 440px !important;
  flex: 0 0 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-inline-start: 0 !important;
  padding: 0 !important;
}

/* Brand header above card */
.areylight-brand-container {
  text-align: center;
  margin-bottom: 24px;
  animation: areylight-fade-in 0.5s ease-out;
}

.areylight-brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  margin-bottom: 14px;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.06);
}

.areylight-brand-logo {
  height: 38px;
  max-width: 220px;
  object-fit: contain;
}

.areylight-brand-title {
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  letter-spacing: -0.5px !important;
  margin: 0 0 4px 0 !important;
}

.areylight-brand-subtitle {
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  color: #64748b !important;
  margin: 0 0 12px 0 !important;
  letter-spacing: 0.1px;
}

.areylight-badge-row {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.areylight-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  color: #059669;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.areylight-pulse-dot {
  width: 6px;
  height: 6px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 6px #10b981;
  animation: areylight-pulse 2s infinite;
}

@keyframes areylight-pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes areylight-fade-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Clean White Card */
body.areylight-login-view .ant-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 20px !important;
  box-shadow: 
    0 20px 40px -15px rgba(15, 23, 42, 0.08),
    0 0 1px rgba(15, 23, 42, 0.1) !important;
  overflow: hidden !important;
  position: relative !important;
  transition: all 0.3s ease !important;
}

body.areylight-login-view .ant-card:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 
    0 24px 48px -12px rgba(15, 23, 42, 0.12),
    0 0 1px rgba(15, 23, 42, 0.15) !important;
}

/* Elegant top accent line */
body.areylight-login-view .ant-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #00D4FF 0%, #0284c7 100%);
}

body.areylight-login-view .ant-card-head {
  border-bottom: 1px solid #f1f5f9 !important;
  padding: 16px 24px !important;
  min-height: 52px !important;
  background: transparent !important;
}

body.areylight-login-view .ant-card-head-title {
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  text-align: center !important;
}

body.areylight-login-view .ant-card-body {
  padding: 28px 24px !important;
}

/* Form items & Labels */
body.areylight-login-view .ant-form-item-label > label {
  font-family: 'Inter', sans-serif !important;
  color: #475569 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

body.areylight-login-view .ant-input,
body.areylight-login-view .ant-input-affix-wrapper {
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  color: #0f172a !important;
  font-family: 'Inter', sans-serif !important;
  padding: 9px 14px !important;
  font-size: 14px !important;
  transition: all 0.2s ease !important;
}

body.areylight-login-view .ant-input:focus,
body.areylight-login-view .ant-input-affix-wrapper:focus,
body.areylight-login-view .ant-input-affix-wrapper-focused {
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
  background-color: #ffffff !important;
}

body.areylight-login-view .ant-input::placeholder {
  color: #94a3b8 !important;
}

body.areylight-login-view .ant-input-password-icon {
  color: #64748b !important;
}

/* Submit Button - AREYLight Vibrant Blue / Cyan */
body.areylight-login-view .ant-btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #00D4FF 100%) !important;
  border: none !important;
  border-radius: 10px !important;
  color: #ffffff !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  letter-spacing: 0.3px !important;
  height: 44px !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3) !important;
  transition: all 0.25s ease !important;
  margin-top: 8px !important;
}

body.areylight-login-view .ant-btn-primary:hover {
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%) !important;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45) !important;
  transform: translateY(-1px) !important;
  color: #ffffff !important;
}

body.areylight-login-view .ant-btn-primary:active {
  transform: translateY(0) !important;
}

/* Footer */
.areylight-login-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 12px;
  color: #94a3b8;
  font-family: 'Inter', sans-serif;
}

.areylight-login-footer a {
  color: #0284c7;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.areylight-login-footer a:hover {
  color: #0369a1;
  text-decoration: underline;
}

/* ============================================================
   MAIN DASHBOARD HEADER TWEAKS
   ============================================================ */
.layout-header {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05) !important;
}
.layout-header .logo {
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.05));
}
