/* ============================================================
   SPITZER COMMUNICATIONS LTD — Login Page Styles
   auth.css v1.0
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:        #0D1B2A;
  --navy-light:  #1A3A5C;
  --gold:        #1D5FA6;
  --gold-light:  #5B9BD5;
  --white:       #FFFFFF;
  --bg-light:    #F4F6FA;
  --text-dark:   #1A1A2E;
  --text-mid:    #4A5568;
  --text-light:  #718096;
  --border:      #E2E8F0;
  --danger:      #DC2626;
  --shadow-card: 0 25px 60px rgba(0,0,0,0.30), 0 8px 20px rgba(0,0,0,0.15);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, var(--navy) 0%, #0a2540 50%, var(--navy-light) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Subtle geometric background pattern */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(201,168,76,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(26,58,92,0.4) 0%, transparent 50%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 40px,
      rgba(255,255,255,0.01) 40px,
      rgba(255,255,255,0.01) 41px
    );
  pointer-events: none;
  z-index: 0;
}

/* Floating orbs */
body::after {
  content: '';
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.06), transparent 70%);
  top: -200px;
  right: -200px;
  pointer-events: none;
  z-index: 0;
}

.login-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  padding: 20px;
}

/* ── Login Card ── */
.login-card {
  background: var(--white);
  border-radius: 24px;
  padding: 48px 44px 40px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255,255,255,0.1);
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Logo ── */
.login-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.logo-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(13,27,42,0.3);
}
.logo-icon img { width: 100%; height: 100%; display: block; }

.logo-text .company-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.4px;
}

.logo-text .company-suffix {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* ── Gold accent bar ── */
.gold-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 60%, transparent 100%);
  border-radius: 2px;
  margin: 20px 0 24px;
}

/* ── Title ── */
.login-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.login-subtitle {
  font-size: 14px;
  color: var(--text-mid);
  margin-bottom: 28px;
  font-weight: 400;
}

/* ── Form ── */
.login-form { display: flex; flex-direction: column; gap: 18px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.forgot-link {
  font-weight: 500;
  color: var(--navy-light);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.2s;
}
.forgot-link:hover { color: var(--gold); }

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-light);
  font-size: 14px;
  z-index: 1;
  pointer-events: none;
}

.form-input {
  width: 100%;
  padding: 12px 42px 12px 40px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: #FAFBFC;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  border-color: var(--navy-light);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(26,58,92,0.08);
}

.form-input::placeholder { color: #B0BAC9; }

.toggle-password {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  font-size: 14px;
  padding: 4px;
  transition: color 0.2s;
}
.toggle-password:hover { color: var(--navy); }

/* ── Checkbox ── */
.form-row { display: flex; align-items: center; }

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-mid);
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--navy);
  cursor: pointer;
}

/* ── Error Alert ── */
.error-alert {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--danger);
  display: flex;
  align-items: center;
  gap: 8px;
}
.error-alert::before { content: '\f071'; font-family: 'Font Awesome 6 Free'; font-weight: 900; }

/* ── Login Button ── */
.login-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s;
  margin-top: 4px;
  box-shadow: 0 4px 16px rgba(13,27,42,0.3);
}

.login-btn:hover {
  background: linear-gradient(135deg, #162840, var(--navy-light));
  box-shadow: 0 6px 20px rgba(13,27,42,0.4);
  transform: translateY(-1px);
}

.login-btn:active { transform: translateY(0); }

.login-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Spinner */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Demo Info ── */
.demo-info {
  margin-top: 24px;
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}

.demo-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.demo-title i { color: var(--gold); }

.demo-creds { display: flex; flex-direction: column; gap: 5px; }

.cred-row {
  font-size: 11.5px;
  color: var(--text-mid);
  font-family: monospace;
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 10px;
  cursor: pointer;
  transition: background 0.15s;
}

.cred-row:hover { background: #EEF2FF; }

.cred-role {
  font-weight: 700;
  color: var(--navy);
  font-family: 'Inter', sans-serif;
  margin-right: 6px;
}

/* ── Footer ── */
.login-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 11px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.login-footer i { color: var(--gold); }

/* ── Responsive ── */
@media (max-width: 480px) {
  .login-card { padding: 36px 24px 32px; border-radius: 20px; }
  .login-title { font-size: 20px; }
}
