/* =========================================================
   SHAKTISQUAD IMS — PREMIUM APPLICATION SIGN-IN PAGE STYLE
   Rich aesthetics: Slate gradients, glassmorphism, smooth rings.
   ========================================================= */

:root {
  --sa-bg: #f8fafc;
  --sa-white: #ffffff;
  --sa-border: #e2e8f0;
  --sa-border-focus: #f97316;
  --sa-ink: #0f172a;
  --sa-dim: #475569;
  --sa-faint: #94a3b8;
  --sa-orange: #f97316;
  --sa-orange-hover: #ea580c;
  --sa-orange-light: rgba(249, 115, 22, 0.08);
  --sa-red: #ef4444;
  --sa-red-bg: #fef2f2;
  --sa-green: #10b981;
  --sa-green-bg: #ecfdf5;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--sa-bg);
  color: var(--sa-ink);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Full Page Auth Wrapper ---------- */
.auth-wrapper {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  width: 100vw;
  height: 100vh;
}

/* Left panel: deep dark brand sidebar with slate gradient & details */
.auth-sidebar {
  background: radial-gradient(circle at 10% 20%, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  padding: 60px 80px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

/* Simulated grid/line pattern overlay for premium feel */
.auth-sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 60%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 60%, transparent 100%);
  pointer-events: none;
}

/* Glow highlights */
.auth-sidebar::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -50px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.15), transparent 70%);
  pointer-events: none;
}

.auth-sidebar .sidebar-glow {
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.06), transparent 70%);
  pointer-events: none;
}

.auth-sidebar .logo-section {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 5;
}

.auth-sidebar .logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background-color: var(--sa-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.35);
}

.auth-sidebar .logo-mark svg {
  width: 22px;
  height: 22px;
  stroke: #ffffff;
  fill: none;
}

.auth-sidebar .logo-text {
  line-height: 1.2;
}

.auth-sidebar .logo-text .name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.auth-sidebar .logo-text .name em {
  color: var(--sa-orange);
  font-style: normal;
}

.auth-sidebar .logo-text .sub {
  font-size: 11px;
  color: var(--sa-faint);
  font-weight: 500;
}

/* Glassmorphic quote card */
.auth-sidebar .quote-container {
  max-width: 480px;
  position: relative;
  z-index: 5;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  margin-top: auto;
  margin-bottom: auto;
}

.auth-sidebar .quote-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sa-orange);
  margin-bottom: 16px;
}

.auth-sidebar .quote-text {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  color: #f8fafc;
}

.auth-sidebar .quote-author {
  font-size: 13px;
  color: var(--sa-faint);
  margin-top: 20px;
  font-weight: 500;
}

/* Stats section */
.auth-sidebar .stats-row {
  display: flex;
  gap: 56px;
  position: relative;
  z-index: 5;
}

.auth-sidebar .stat-item .val {
  font-size: 32px;
  font-weight: 800;
  color: var(--sa-orange);
  letter-spacing: -0.02em;
}

.auth-sidebar .stat-item .lbl {
  font-size: 12px;
  color: var(--sa-faint);
  margin-top: 4px;
  font-weight: 500;
}

/* Right panel: centering form */
.auth-form-container {
  background-color: var(--sa-white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  border-left: 1px solid var(--sa-border);
}

/* Centered card container - clean borderless style on white screen */
.login-container {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
}

/* Titles */
h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--sa-ink);
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

.sub-message {
  font-size: 14px;
  color: var(--sa-dim);
  line-height: 1.5;
  margin-bottom: 32px;
}

/* Form structure */
form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sa-dim);
}

.form-field input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--sa-border);
  border-radius: 8px;
  padding: 0 14px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--sa-ink);
  background-color: var(--sa-white);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-field input::placeholder {
  color: var(--sa-faint);
}

.form-field input:focus {
  border-color: var(--sa-border-focus);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

/* Password eye button styling */
.pwd-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.pwd-toggle {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--sa-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  outline: none;
  transition: color 0.15s ease;
}

.pwd-toggle:hover {
  color: var(--sa-dim);
}

.pwd-toggle svg {
  width: 18px;
  height: 18px;
}

/* Remember me row */
.checkbox-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  margin-top: 4px;
  margin-bottom: 8px;
}

.checkbox-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sa-dim);
  cursor: pointer;
  user-select: none;
}

.checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--sa-orange);
  cursor: pointer;
  border-radius: 4px;
  border: 1px solid var(--sa-border);
}

.checkbox-row a,
.auth-foot a {
  color: var(--sa-orange);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

.checkbox-row a:hover,
.auth-foot a:hover {
  color: var(--sa-orange-hover);
  text-decoration: underline;
}

/* Submit button with orange gradient and hover scale */
.btn-submit {
  width: 100%;
  height: 46px;
  background: linear-gradient(135deg, var(--sa-orange) 0%, var(--sa-orange-hover) 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.2);
  transition: opacity 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.btn-submit:hover {
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.3);
}

.btn-submit:active {
  transform: scale(0.98);
}

.btn-submit svg {
  width: 16px;
  height: 16px;
  stroke: #ffffff;
  stroke-width: 2.5;
}

/* Dividers */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--sa-faint);
  font-size: 11px;
  margin: 28px 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: var(--sa-border);
}

.auth-foot {
  text-align: center;
  font-size: 13.5px;
  color: var(--sa-dim);
}

/* Custom Success/Error Banners */
.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  background-color: var(--sa-green-bg);
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--sa-green);
  font-weight: 500;
  margin-bottom: 22px;
  box-shadow: 0 4px 12px rgba(10, 185, 129, 0.05);
}

.form-success svg {
  width: 18px;
  height: 18px;
  stroke: var(--sa-green);
}

.form-error {
  display: none;
  align-items: center;
  gap: 10px;
  background-color: var(--sa-red-bg);
  border: 1px solid #fca5a5;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--sa-red);
  font-weight: 500;
  margin-bottom: 22px;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.05);
}

.form-error svg {
  width: 18px;
  height: 18px;
  stroke: var(--sa-red);
}

.field-error {
  display: none;
  font-size: 11.5px;
  color: var(--sa-red);
  font-weight: 500;
  margin-top: 3px;
}

.form-field.error input {
  border-color: var(--sa-red) !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.08) !important;
}

.form-field.error .field-error {
  display: block;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .auth-wrapper {
    grid-template-columns: 1.1fr 0.9fr;
  }
  .auth-sidebar {
    padding: 60px 40px;
  }
}

@media (max-width: 980px) {
  .auth-wrapper {
    grid-template-columns: 1fr;
  }
  .auth-sidebar {
    display: none;
  }
  .auth-form-container {
    padding: 40px 24px;
    background-color: var(--sa-bg); /* Use soft gray background on mobile card overlay */
  }
  .login-container {
    background-color: var(--sa-white);
    border: 1px solid var(--sa-border);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(17, 20, 24, 0.03);
    padding: 40px 28px;
  }
}
