/* ERP PSS — Futuristic Professional Dark Auth Theme (Black / White / Red) */

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

:root {
  --auth-bg:        #000000;
  --auth-surface:   #0E0E0E;
  --auth-card:      #121212;
  --auth-border:    #2A2A2A;
  --auth-accent:    #FF1E3C;
  --auth-accent-2:  #E11D48;
  --auth-accent-dim: rgba(255, 30, 60, 0.14);
  --auth-text:      #FFFFFF;
  --auth-muted:     #9CA3AF;
  --auth-dim:       #4B4B4B;
  --auth-input-bg:  #0A0A0A;
  --auth-white:     #FFFFFF;
  --auth-font:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

.auth-body {
  font-family: var(--auth-font);
  background: var(--auth-bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--auth-text);
  overflow: hidden;
  position: relative;
}

/* Fine grid */
.auth-body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 50px 50px;
  -webkit-mask-image: radial-gradient(circle at 50% 42%, #000 0%, transparent 78%);
          mask-image: radial-gradient(circle at 50% 42%, #000 0%, transparent 78%);
  pointer-events: none;
  z-index: 0;
}

/* Glow orbs */
.auth-body::after {
  content: '';
  position: fixed;
  top: -220px;
  right: -180px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(255, 30, 60, 0.16) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: pulse-glow 6s ease-in-out infinite alternate;
}

.auth-body .auth-wrapper::before {
  content: '';
  position: fixed;
  bottom: -260px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 30, 60, 0.10) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

@keyframes pulse-glow {
  from { opacity: 0.55; transform: scale(1); }
  to   { opacity: 1;    transform: scale(1.12); }
}

.auth-wrapper {
  width: 100%;
  max-width: 410px;
  padding: 20px;
  position: relative;
  z-index: 1;
}

/* Card with gradient border */
.auth-card {
  background: linear-gradient(180deg, var(--auth-card), var(--auth-surface));
  border: 1px solid var(--auth-border);
  border-radius: 18px;
  padding: 42px 34px 30px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.7),
    0 0 60px rgba(255, 30, 60, 0.06);
  position: relative;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
  animation: auth-fade-up 0.55s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

@keyframes auth-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.auth-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(140deg, rgba(255, 30, 60, 0.8), rgba(255,255,255,0.12) 35%, transparent 60%, rgba(255, 30, 60, 0.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.auth-card:hover {
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.7),
    0 0 90px rgba(255, 30, 60, 0.10);
  transform: translateY(-2px);
}

/* Logo — white/red gradient ring */
.auth-logo {
  width: 74px;
  height: 74px;
  background: linear-gradient(135deg, #1A1A1A 0%, var(--auth-accent) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  box-shadow: 0 0 34px rgba(255, 30, 60, 0.35);
  position: relative;
}

.auth-logo::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-top-color: var(--auth-accent);
  border-right-color: var(--auth-accent);
  animation: spin-slow 10s linear infinite;
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.auth-logo i {
  color: #FFFFFF;
  font-size: 1.8rem;
}

.auth-logo .logo-monogram {
  color: #FFFFFF;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.5px;
}

/* Header */
.auth-header h4 {
  font-weight: 800;
  color: var(--auth-white);
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}

.auth-header p {
  font-size: 0.8rem;
  color: var(--auth-muted);
  margin-top: 5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Form */
.auth-card label,
.auth-card .form-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--auth-muted);
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.auth-card .form-control {
  border-radius: 11px;
  padding: 12px 15px;
  font-size: 0.9rem;
  background: var(--auth-input-bg);
  border: 1px solid var(--auth-border);
  color: var(--auth-white);
  transition: all 0.2s ease;
}

.auth-card .form-control:focus {
  border-color: var(--auth-accent);
  box-shadow: 0 0 0 3px rgba(255, 30, 60, 0.18);
  background: #0D0D0D;
  color: var(--auth-white);
}

.auth-card .form-control::placeholder {
  color: var(--auth-dim);
}

.auth-card .input-group-text {
  border-radius: 11px 0 0 11px;
  background: var(--auth-surface);
  border: 1px solid var(--auth-border);
  border-right: none;
  color: var(--auth-muted);
}

.auth-card .input-group .form-control {
  border-radius: 0 11px 11px 0;
}

.auth-card .input-group:focus-within .input-group-text {
  border-color: var(--auth-accent);
  color: var(--auth-accent);
}

.auth-card .input-group .btn-outline-secondary {
  border: 1px solid var(--auth-border);
  border-left: none;
  border-radius: 0 11px 11px 0;
  color: var(--auth-muted);
  background: var(--auth-surface);
}

.auth-card .input-group .btn-outline-secondary:hover {
  color: var(--auth-accent);
  background: var(--auth-accent-dim);
  border-color: var(--auth-accent);
}

.auth-card .form-check-input {
  background-color: var(--auth-input-bg);
  border-color: var(--auth-dim);
  width: 1.05rem;
  height: 1.05rem;
}

.auth-card .form-check-input:checked {
  background-color: var(--auth-accent);
  border-color: var(--auth-accent);
  box-shadow: 0 0 10px rgba(255, 30, 60, 0.5);
}

.auth-card .form-check-label {
  font-size: 0.85rem;
  color: var(--auth-muted);
}

/* Primary button */
.auth-card .btn-primary {
  border-radius: 11px;
  padding: 13px;
  font-weight: 700;
  font-size: 0.92rem;
  background: linear-gradient(135deg, var(--auth-accent) 0%, var(--auth-accent-2) 100%);
  border: none;
  color: #fff;
  letter-spacing: 0.04em;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(255, 30, 60, 0.35);
}

.auth-card .btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.18) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.auth-card .btn-primary:hover {
  background: linear-gradient(135deg, #FF3D57 0%, var(--auth-accent) 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(255, 30, 60, 0.45);
}

.auth-card .btn-primary:hover::before {
  opacity: 1;
}

.auth-card .btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 6px 18px rgba(255, 30, 60, 0.3);
}

/* Forgot password link */
.auth-link {
  color: var(--auth-muted);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s ease;
}
.auth-link:hover {
  color: var(--auth-accent);
}

/* Footer */
.auth-footer {
  border-top: 1px solid var(--auth-border);
  padding-top: 16px;
  margin-top: 6px;
}

.auth-footer small {
  color: var(--auth-dim);
  letter-spacing: 0.04em;
}

.auth-card .form-text {
  font-size: 0.8rem;
}

.auth-card a {
  color: var(--auth-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

.auth-card a:hover {
  color: #FF6B80;
}

/* Alert override */
.auth-card .alert-danger {
  background: rgba(255, 30, 60, 0.10);
  border: 1px solid rgba(255, 30, 60, 0.25);
  color: #FFB3BE;
  border-radius: 11px;
}

.auth-card .alert-success {
  background: rgba(22, 163, 74, 0.10);
  border: 1px solid rgba(22, 163, 74, 0.25);
  color: #86EFAC;
  border-radius: 11px;
}

/* Responsive */
@media (max-width: 480px) {
  .auth-wrapper { padding: 12px; }
  .auth-card { padding: 30px 20px 24px; }
  .auth-logo { width: 62px; height: 62px; }
  .auth-logo i { font-size: 1.45rem; }
}
