/* ==========================================================================
   EquipLifecycle - Professional Visual Admin Login Stylesheet
   ========================================================================== */

:root {
  --auth-navy-950: #070d1e;
  --auth-navy-900: #0b1329;
  --auth-navy-800: #131f3d;
  --auth-navy-700: #1e293b;
  --auth-primary: #2563eb;
  --auth-primary-hover: #1d4ed8;
  --auth-slate-50: #f8fafc;
  --auth-slate-100: #f1f5f9;
  --auth-slate-200: #e2e8f0;
  --auth-slate-300: #cbd5e1;
  --auth-slate-400: #94a3b8;
  --auth-slate-500: #64748b;
  --auth-slate-600: #475569;
  --auth-slate-700: #334155;
  --auth-font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html, body.login-body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: var(--auth-font);
  background-color: #f8fafc;
  color: var(--auth-navy-700);
  -webkit-font-smoothing: antialiased;
}

/* Split Screen Layout */
.auth-page-container {
  display: flex;
  min-height: 100vh;
  width: 100vw;
  overflow-x: hidden;
}

/* ==========================================================================
   LEFT SIDE: Architectural Visual Hero Banner
   ========================================================================== */
.auth-visual-side {
  flex: 1.15;
  position: relative;
  background-color: var(--auth-navy-950);
  background-image: url('/images/smart-parking-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3.5rem 4rem;
  overflow: hidden;
  border-right: 1px solid var(--auth-slate-200);
}

/* Image Overlay */
.auth-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg, 
    rgba(7, 13, 30, 0.65) 0%, 
    rgba(7, 13, 30, 0.25) 40%, 
    rgba(7, 13, 30, 0.88) 100%
  );
  z-index: 1;
}

.auth-visual-top {
  position: relative;
  z-index: 2;
}

.auth-brand-lockup {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.auth-brand-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.auth-brand-text h1 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.auth-brand-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(37, 99, 235, 0.35);
  color: #93c5fd;
  border: 1px solid rgba(147, 197, 253, 0.4);
  padding: 2px 8px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.auth-brand-desc {
  font-size: 0.775rem;
  color: #cbd5e1;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 3px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.auth-visual-bottom {
  position: relative;
  z-index: 2;
  color: #ffffff;
  max-width: 520px;
}

.visual-headline {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.visual-subtext {
  font-size: 0.95rem;
  color: #e2e8f0;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.visual-pills {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.visual-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  font-size: 0.785rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
}

.visual-pill i {
  color: #38bdf8;
}

/* ==========================================================================
   RIGHT SIDE: Focused Admin Authentication Card
   ========================================================================== */
.auth-form-side {
  flex: 0.85;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem 2.5rem;
  position: relative;
}

.auth-form-box {
  width: 100%;
  max-width: 400px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

/* Header */
.auth-form-header {
  margin-bottom: 2rem;
}

.auth-mobile-logo {
  display: none;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.auth-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--auth-navy-900);
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem 0;
}

.auth-subtitle {
  font-size: 0.875rem;
  color: var(--auth-slate-500);
  line-height: 1.45;
  margin: 0;
}

/* Alert Box */
.auth-alert-danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.auth-alert-danger ul {
  margin: 0;
  padding-left: 1.15rem;
}

/* Inputs & Form Controls */
.auth-form-group {
  margin-bottom: 1.35rem;
}

.auth-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--auth-navy-700);
  margin-bottom: 0.45rem;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon {
  position: absolute;
  left: 14px;
  color: var(--auth-slate-400);
  font-size: 1.05rem;
  pointer-events: none;
  transition: color 0.15s;
}

.auth-input {
  width: 100%;
  height: 44px;
  padding: 0.5rem 0.85rem 0.5rem 2.65rem;
  font-size: 0.875rem;
  color: var(--auth-navy-900);
  background-color: #ffffff;
  border: 1px solid var(--auth-slate-300);
  border-radius: 8px;
  transition: all 0.15s ease-in-out;
  outline: none;
}

.auth-input::placeholder {
  color: var(--auth-slate-400);
}

.auth-input:focus {
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.auth-input-wrap:focus-within .auth-input-icon {
  color: var(--auth-primary);
}

/* Password Toggle */
.btn-password-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--auth-slate-400);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}

.btn-password-toggle:hover {
  color: var(--auth-navy-900);
  background-color: var(--auth-slate-100);
}

.auth-val-error {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: #dc2626;
  margin-top: 0.35rem;
}

/* Meta Options */
.auth-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  font-size: 0.8125rem;
}

.auth-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--auth-slate-600);
  cursor: pointer;
  user-select: none;
}

.auth-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  accent-color: var(--auth-primary);
  cursor: pointer;
}

.auth-help-link {
  color: var(--auth-primary);
  text-decoration: none;
  font-weight: 600;
}

.auth-help-link:hover {
  text-decoration: underline;
}

/* Submit Action Button */
.btn-auth-submit {
  width: 100%;
  height: 46px;
  background-color: var(--auth-primary);
  color: #ffffff;
  border: 1px solid var(--auth-primary);
  border-radius: 8px;
  font-size: 0.925rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
  transition: all 0.15s ease-in-out;
}

.btn-auth-submit:hover {
  background-color: var(--auth-primary-hover);
  border-color: var(--auth-primary-hover);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.btn-auth-submit:active {
  transform: translateY(1px);
}

/* Card Bottom Footer */
.auth-form-footer {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--auth-slate-100);
  text-align: center;
  font-size: 0.75rem;
  color: var(--auth-slate-400);
}

/* Responsive */
@media (max-width: 992px) {
  .auth-visual-side {
    display: none;
  }
  .auth-form-side {
    flex: 1;
    background-color: #ffffff;
    padding: 2rem 1.5rem;
  }
  .auth-mobile-logo {
    display: flex;
  }
}
