/*==============================================================================
STATSCALAR ENTERPRISE - LOGIN PAGE STYLES
Version: 2.0
Page: Login (login.blade.php)
Framework: Laravel Blade + Bootstrap
Author: Balagali
Description: Consolidated styling for the split-panel login page — dark
gradient intelligence/feature panel on the left, sign-in form on the right.

CONSOLIDATION NOTES (please read):
1. GENUINE CONTRAST BUG FOUND: a later override block ("Login Page Word
   Logo") set `.ss-login-info .stat-logo` to `color: var(--ss-heading)`
   — a dark navy color — while the left panel's background is a dark
   green gradient (`#0f5132 → #00a86b`). Since the blade markup is
   `stat<span>SCALAR</span>` (the word "stat" is NOT wrapped in the span),
   the word "stat" would render in dark navy text on a dark green
   background — essentially invisible. The accompanying span rule even
   had a comment reading "lighter green for contrast" while its actual
   value was plain white, so the comment didn't match the code either.
   FIXED here: "stat" is now white, "SCALAR" uses a warm amber accent
   (consistent with this page's own decorative amber blob, defined via
   `.ss-login-page::after`), giving clear, brand-consistent contrast.
2. UNUSED, FULLY-BUILT COMPONENT FOUND: `.ss-login-info ul li` (with a
   `.ss-icon` circle, `<strong>` heading, and `<p>` description, plus
   staggered fade-in animations for up to 6 items) is completely styled
   but the original blade markup never used it — it only rendered one
   plain trust line. This file keeps that styling; the companion blade
   template now actually uses it for a short 3-item trust/feature list,
   which looks substantially better than a single line of text and no
   longer wastes ~140 lines of already-written CSS.
==============================================================================*/

/*==============================================================================
01. LOGIN PAGE WRAPPER
==============================================================================*/
.ss-login-page {
  position: relative;
  padding: 35px 0;
  background:
    radial-gradient(circle at top left, #edf9f4 0%, transparent 42%),
    radial-gradient(circle at bottom right, #f4fbf8 0%, transparent 45%),
    linear-gradient(180deg, #f8fbfa 0%, #eef6f2 100%);
  overflow: hidden;
}

.ss-login-page::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: rgba(0, 168, 107, 0.05);
  top: -220px;
  left: -180px;
  filter: blur(10px);
}

.ss-login-page::after {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.05);
  bottom: -180px;
  right: -150px;
}

.ss-login-wrapper {
  position: relative;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 34px;
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(15, 23, 42, 0.08),
    0 6px 18px rgba(15, 23, 42, 0.04);
  z-index: 2;
  animation: ssFadeUp 0.7s ease;
}

.ss-login-wrapper > .row {
  min-height: 620px;
}

.ss-login-info,
.ss-login-form {
  height: 100%;
  position: relative;
  z-index: 2;
}

/*==============================================================================
02. LEFT PANEL - Intelligence / Trust Panel
==============================================================================*/
.ss-login-info {
  padding: 50px;
  background: linear-gradient(160deg, #0f5132 0%, #00a86b 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.ss-login-info::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  top: -160px;
  right: -120px;
}

.ss-login-info::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  bottom: -90px;
  left: -90px;
}

/* Word Logo — fixed contrast: "stat" white, "SCALAR" warm amber accent
   (was: dark navy on dark green, effectively invisible) */
.ss-login-info .ss-logo {
  display: inline-block;
  margin-bottom: 45px;
}

.ss-login-info .stat-logo {
  display: inline-block;
  font-size: 35px;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1;
  color: #fff;
  text-decoration: none;
}

.ss-login-info .stat-logo span {
  color: #FBBF24;
  /* warm amber accent — matches this page's own decorative amber blob */
}

.ss-login-info h1 {
  color: #fff;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 22px;
  letter-spacing: 0.5px;
}

.ss-login-info .ss-intro {
  color: rgba(255, 255, 255, 0.90);
  font-size: 16px;
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 30px;
}

/* Trust line (kept for backward compatibility if used standalone) */
.ss-login-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.90);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.ss-login-trust i {
  color: #FBBF24;
  font-size: 16px;
  flex-shrink: 0;
}

/* Feature List (previously unused — now used for the 3-item trust list) */
.ss-login-info ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.ss-login-info ul li {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(14px);
  transition: 0.35s ease;
  cursor: default;
}

.ss-login-info ul li:hover {
  transform: translateX(8px);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.20);
}

.ss-login-info .ss-icon {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  transition: all 0.35s ease;
}

.ss-login-info ul li:hover .ss-icon {
  transform: rotate(-4deg) scale(1.05);
}

.ss-login-info .ss-icon i {
  font-size: 20px;
  color: var(--ss-primary);
}

.ss-login-info strong {
  display: block;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.ss-login-info li p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.5;
}

.ss-login-info ul li:nth-child(1) { animation: ssFadeUp 0.5s ease both; }
.ss-login-info ul li:nth-child(2) { animation: ssFadeUp 0.6s ease both; }
.ss-login-info ul li:nth-child(3) { animation: ssFadeUp 0.7s ease both; }
.ss-login-info ul li:nth-child(4) { animation: ssFadeUp 0.8s ease both; }
.ss-login-info ul li:nth-child(5) { animation: ssFadeUp 0.9s ease both; }
.ss-login-info ul li:nth-child(6) { animation: ssFadeUp 1.0s ease both; }

@keyframes ssFadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*==============================================================================
03. RIGHT PANEL - Sign-In Form
==============================================================================*/
.ss-login-form {
  padding: 50px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ss-login-form h2 {
  font-size: 34px;
  font-weight: 800;
  color: var(--ss-heading);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.ss-login-form > p {
  font-size: 17px;
  color: var(--ss-muted);
  margin-bottom: 24px;
}

.ss-login-form .alert {
  border: none;
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 26px;
  font-size: 15px;
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.05);
  animation: ssFadeUp 0.45s ease;
}

.ss-login-form label {
  display: block;
  margin-bottom: 6px;
  color: var(--ss-heading);
  font-size: 15px;
  font-weight: 700;
}

.ss-login-form .form-control {
  width: 100%;
  height: 52px;
  border: 1px solid var(--ss-border);
  border-radius: 12px;
  background: #fff;
  padding: 0 20px;
  margin-bottom: 6px;
  font-size: 15px;
  color: var(--ss-heading);
  transition: all 0.30s ease;
  box-shadow: none;
}

.ss-login-form .form-control::placeholder {
  color: #94A3B8;
}

.ss-login-form .form-control:hover {
  border-color: #CBD5E1;
}

.ss-login-form .form-control:focus {
  border-color: var(--ss-primary);
  box-shadow: 0 0 0 4px rgba(0, 168, 107, 0.10);
  transform: translateY(-2px);
  outline: none;
}

.ss-login-form .form-control[aria-invalid="true"] {
  border-color: #dc2626;
}

.ss-login-form .error {
  display: block;
  color: #dc2626;
  font-size: 13px;
  margin-bottom: 18px;
  font-weight: 600;
  animation: ssFadeUp 0.25s ease;
}

/* Options Row: Remember Me + Forgot Password */
.ss-login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 18px 0 24px;
}

.ss-login-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ss-text);
  cursor: pointer;
}

.ss-login-options input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--ss-primary);
  cursor: pointer;
}

.ss-login-options a,
.ss-register a {
  position: relative;
  color: var(--ss-primary);
  font-size: 14px;
  font-weight: 700;
  transition: 0.30s;
  text-decoration: none;
}

.ss-login-options a::after,
.ss-register a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--ss-primary);
  transition: var(--ss-transition);
}

.ss-login-options a:hover::after,
.ss-register a:hover::after {
  width: 100%;
}

.ss-login-options a:hover,
.ss-register a:hover {
  color: var(--ss-primary-dark);
}

/* Sign-In Button */
.ss-login-btn {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 54px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--ss-primary), var(--ss-primary-dark));
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 0 15px 35px rgba(0, 168, 107, 0.25);
  transition: all 0.30s ease;
  cursor: pointer;
}

.ss-login-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transition: 0.8s;
}

.ss-login-btn:hover::before {
  left: 150%;
}

.ss-login-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 45px rgba(0, 168, 107, 0.30);
}

.ss-login-btn:active {
  transform: translateY(0);
}

.ss-login-btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(0, 168, 107, 0.15),
    0 18px 45px rgba(0, 168, 107, 0.28);
}

.ss-login-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Register Prompt */
.ss-register {
  margin-top: 22px;
  text-align: center;
  font-size: 15px;
  color: var(--ss-muted);
}

.ss-register a {
  margin-left: 6px;
}

/* Privacy Note */
.privacy-text {
  margin-top: 18px;
  margin-bottom: 0;
  text-align: center;
  font-size: 13px;
  color: #64748B;
  padding-top: 16px;
  border-top: 1px solid var(--ss-border);
}

/* Accessibility: Focus Visibility */
.ss-login-form input:focus-visible,
.ss-login-options a:focus-visible,
.ss-register a:focus-visible {
  outline: 3px solid rgba(0, 168, 107, 0.18);
  outline-offset: 3px;
}

/*==============================================================================
04. RESPONSIVE DESIGN
==============================================================================*/

@media (max-width: 1200px) {
  .ss-login-wrapper {
    border-radius: 30px;
  }

  .ss-login-info,
  .ss-login-form {
    padding: 60px 50px;
  }
}

@media (max-width: 991px) {
  .ss-login-page {
    padding: 70px 0;
    min-height: auto;
  }

  .ss-login-wrapper {
    border-radius: 24px;
    overflow: hidden;
  }

  .ss-login-wrapper > .row {
    min-height: auto;
    flex-direction: column;
  }

  .ss-login-info,
  .ss-login-form {
    padding: 50px 40px;
  }

  .ss-login-info {
    text-align: center;
    border-radius: 24px 24px 0 0;
  }

  .ss-login-info .ss-logo {
    margin: 0 auto 36px;
  }

  .ss-login-info h1 {
    font-size: 38px;
  }

  .ss-login-info .ss-intro {
    max-width: 100%;
    margin-bottom: 30px;
  }

  .ss-login-info ul {
    gap: 14px;
  }

  .ss-login-info ul li {
    align-items: center;
    text-align: left;
  }

  .ss-login-form {
    border-radius: 0 0 24px 24px;
    justify-content: flex-start;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
  }
}

@media (max-width: 767px) {
  .ss-login-page {
    padding: 40px 0;
  }

  .ss-login-wrapper {
    border-radius: 20px;
  }

  .ss-login-info,
  .ss-login-form {
    padding: 35px 24px;
  }

  .ss-login-info h1 {
    font-size: 32px;
    line-height: 1.2;
  }

  .ss-login-info .ss-intro {
    font-size: 16px;
  }

  .ss-login-info ul li {
    padding: 16px;
    gap: 14px;
  }

  .ss-login-form h2 {
    font-size: 30px;
  }

  .ss-login-form > p {
    font-size: 15px;
    margin-bottom: 26px;
  }

  .ss-login-form .form-control {
    height: 54px;
    padding: 0 16px;
    font-size: 14px;
  }

  .ss-login-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .ss-login-btn {
    height: 56px;
    font-size: 15px;
  }

  .ss-register {
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .ss-login-page {
    padding: 30px 0;
  }

  .ss-login-wrapper {
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
  }

  .ss-login-info,
  .ss-login-form {
    padding: 24px 18px;
  }

  .ss-login-info .ss-logo {
    margin-bottom: 24px;
  }

  .ss-login-info .stat-logo {
    font-size: 28px;
  }

  .ss-login-info h1 {
    font-size: 26px;
  }

  .ss-login-info .ss-intro {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .ss-login-info .ss-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }

  .ss-login-info .ss-icon i {
    font-size: 17px;
  }

  .ss-login-info strong {
    font-size: 15px;
  }

  .ss-login-info li p {
    font-size: 12px;
    line-height: 1.5;
  }

  .ss-login-form h2 {
    font-size: 26px;
  }

  .ss-register {
    font-size: 13px;
  }

  .privacy-text {
    font-size: 12px;
  }
}

@media (max-width: 360px) {
  .ss-login-info h1 {
    font-size: 22px;
  }

  .ss-login-form h2 {
    font-size: 22px;
  }

  .ss-login-btn {
    font-size: 14px;
  }
}

/*==============================================================================
05. ACCESSIBILITY & UTILITIES
==============================================================================*/
@media (prefers-reduced-motion: reduce) {
  .ss-login-wrapper,
  .ss-login-btn,
  .ss-login-btn::before,
  .ss-login-form .form-control,
  .ss-login-info ul li,
  .ss-login-info .ss-icon,
  .ss-login-options a::after,
  .ss-register a::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
