/* =========================================================
   SMARTSTOCK LOGIN PAGE
   Inventory, Sales & Purchase Management System
========================================================= */


/* =========================================================
   GLOBAL
========================================================= */

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;

  background: #f5f7fb;
  color: #111827;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* =========================================================
   LOGIN PAGE
========================================================= */

.login-page {
  min-height: 100vh;

  overflow: hidden;

  background: #f5f7fb;
}


/* =========================================================
   LEFT BRANDING SECTION
========================================================= */

.login-brand-section {
  position: relative;

  min-height: 100vh;

  display: flex;
  align-items: center;

  padding: 60px 8%;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 10% 10%,
      rgba(37, 99, 235, 0.22),
      transparent 30%
    ),
    radial-gradient(
      circle at 90% 90%,
      rgba(37, 99, 235, 0.12),
      transparent 35%
    ),
    linear-gradient(
      145deg,
      #071426 0%,
      #0b172a 55%,
      #0e1d34 100%
    );
}


/* Decorative Circle */

.login-brand-section::before {
  content: "";

  position: absolute;

  width: 560px;
  height: 560px;

  top: -290px;
  right: -250px;

  border: 1px solid rgba(59, 130, 246, 0.14);

  border-radius: 50%;

  box-shadow:
    0 0 0 60px rgba(59, 130, 246, 0.025),
    0 0 0 120px rgba(59, 130, 246, 0.015);

  pointer-events: none;
}


/* Bottom Glow */

.login-brand-section::after {
  content: "";

  position: absolute;

  width: 360px;
  height: 360px;

  bottom: -220px;
  left: -150px;

  border-radius: 50%;

  background: rgba(37, 99, 235, 0.14);

  filter: blur(30px);

  pointer-events: none;
}


/* =========================================================
   BRAND CONTENT
========================================================= */

.brand-content {
  position: relative;

  z-index: 2;

  width: 100%;
  max-width: 620px;

  margin: 0 auto;
}


/* =========================================================
   BRAND HEADER
========================================================= */

.brand-header {
  display: flex;
  align-items: center;

  gap: 14px;

  margin-bottom: 72px;
}


/* =========================================================
   BRAND ICON
========================================================= */

.brand-icon {
  width: 58px;
  height: 58px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 16px;

  background:
    linear-gradient(
      145deg,
      #1677ff 0%,
      #075bdc 100%
    );

  color: #ffffff;

  font-size: 26px;

  box-shadow:
    0 12px 30px rgba(37, 99, 235, 0.35);
}


/* =========================================================
   BRAND TITLE
========================================================= */

.brand-title {
  margin: 0;

  color: #ffffff;

  font-size: 25px;
  font-weight: 750;

  line-height: 1.1;

  letter-spacing: -0.7px;
}

.brand-title span {
  color: #2d82ff;
}


/* =========================================================
   BRAND SUBTITLE
========================================================= */

.brand-subtitle {
  margin: 4px 0 0;

  color: #8491a7;

  font-size: 11px;

  line-height: 1.4;

  letter-spacing: 0.1px;
}


/* =========================================================
   HERO CONTENT
========================================================= */

.hero-content {
  margin-bottom: 48px;
}


/* =========================================================
   HERO BADGE
========================================================= */

.hero-badge {
  display: inline-flex;
  align-items: center;

  padding: 8px 13px;

  margin-bottom: 21px;

  border: 1px solid rgba(59, 130, 246, 0.25);

  border-radius: 30px;

  background: rgba(37, 99, 235, 0.08);

  color: #72a9ff;

  font-size: 11px;
  font-weight: 650;

  letter-spacing: 0.15px;
}


/* =========================================================
   HERO HEADING
========================================================= */

.hero-content h2 {
  margin: 0;

  color: #ffffff;

  font-size: clamp(38px, 4vw, 56px);

  line-height: 1.08;

  font-weight: 750;

  letter-spacing: -2.2px;
}

.hero-content h2 span {
  color: #2c82ff;
}


/* =========================================================
   HERO DESCRIPTION
========================================================= */

.hero-content p {
  max-width: 520px;

  margin: 22px 0 0;

  color: #8996aa;

  font-size: 14px;

  line-height: 1.75;
}


/* =========================================================
   FEATURE LIST
========================================================= */

.feature-list {
  display: flex;
  flex-direction: column;

  gap: 20px;
}


/* =========================================================
   FEATURE ITEM
========================================================= */

.feature-item {
  display: flex;
  align-items: center;

  gap: 14px;
}


/* =========================================================
   FEATURE ICON
========================================================= */

.feature-icon {
  width: 44px;
  height: 44px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(59, 130, 246, 0.14);

  border-radius: 12px;

  background: rgba(37, 99, 235, 0.13);

  color: #4f95ff;

  font-size: 18px;
}


/* =========================================================
   FEATURE TITLE
========================================================= */

.feature-item h6 {
  margin: 0 0 3px;

  color: #f1f5fb;

  font-size: 13px;
  font-weight: 650;

  line-height: 1.3;
}


/* =========================================================
   FEATURE DESCRIPTION
========================================================= */

.feature-item p {
  margin: 0;

  color: #748198;

  font-size: 11px;

  line-height: 1.45;
}


/* =========================================================
   RIGHT LOGIN SECTION
========================================================= */

.login-form-section {
  min-height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 45px;

  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(37, 99, 235, 0.055),
      transparent 30%
    ),
    #f6f8fc;
}


/* =========================================================
   LOGIN CARD
========================================================= */

.login-card {
  width: 100%;
  max-width: 460px;

  padding: 44px 45px;

  background: #ffffff;

  border: 1px solid #e5e9f0;

  border-radius: 20px;

  box-shadow:
    0 25px 70px rgba(15, 23, 42, 0.08),
    0 5px 20px rgba(15, 23, 42, 0.035);
}


/* =========================================================
   MOBILE BRAND
========================================================= */

.mobile-brand {
  display: none;
}


/* =========================================================
   LOGIN HEADING
========================================================= */

.login-heading {
  margin-bottom: 32px;
}


/* =========================================================
   WELCOME TEXT
========================================================= */

.welcome-text {
  display: inline-block;

  margin-bottom: 9px;

  color: #2563eb;

  font-size: 11px;
  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 0.8px;
}


/* =========================================================
   LOGIN TITLE
========================================================= */

.login-heading h2 {
  margin: 0;

  color: #111827;

  font-size: 27px;
  font-weight: 750;

  line-height: 1.2;

  letter-spacing: -0.7px;
}


/* =========================================================
   LOGIN DESCRIPTION
========================================================= */

.login-heading p {
  margin: 8px 0 0;

  color: #8a94a6;

  font-size: 13px;

  line-height: 1.55;
}


/* =========================================================
   FORM FIELD
========================================================= */

.form-field {
  margin-bottom: 21px;
}


/* =========================================================
   FORM LABEL
========================================================= */

.form-label {
  display: block;

  margin-bottom: 8px;

  color: #374151;

  font-size: 13px;
  font-weight: 650;

  line-height: 1.4;
}


/* =========================================================
   CUSTOM INPUT
========================================================= */

.custom-input {
  position: relative;

  display: flex;
  align-items: center;

  width: 100%;
}


/* =========================================================
   INPUT ICON
========================================================= */

.input-icon {
  position: absolute;

  left: 16px;

  z-index: 3;

  color: #8c97a8;

  font-size: 16px;

  pointer-events: none;

  transition:
    color 0.2s ease;
}


/* =========================================================
   FORM CONTROL
========================================================= */

.custom-input .form-control {
  width: 100%;
  height: 51px;

  padding: 0 45px;

  border: 1px solid #dce2ea;

  border-radius: 10px;

  background: #ffffff;

  color: #111827;

  font-size: 14px;

  box-shadow: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}


/* Placeholder */

.custom-input .form-control::placeholder {
  color: #a5adba;
}


/* Hover */

.custom-input .form-control:hover {
  border-color: #c7ced9;
}


/* Focus */

.custom-input .form-control:focus {
  border-color: #2878ed;

  background: #ffffff;

  box-shadow:
    0 0 0 4px rgba(37, 99, 235, 0.09);

  outline: none;
}


/* Focus Icon */

.custom-input:focus-within .input-icon {
  color: #2563eb;
}


/* =========================================================
   PASSWORD TOGGLE
========================================================= */

.password-toggle {
  position: absolute;

  top: 50%;
  right: 7px;

  width: 37px;
  height: 37px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border: 0;

  border-radius: 8px;

  background: transparent;

  color: #8d98a8;

  font-size: 16px;

  transform: translateY(-50%);

  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.password-toggle:hover {
  background: #f1f5f9;

  color: #2563eb;
}

.password-toggle:focus {
  outline: none;

  box-shadow: none;
}


/* =========================================================
   ERROR MESSAGE
========================================================= */

#loginError {
  margin-top: -3px;
  margin-bottom: 17px;

  padding: 11px 13px;

  border: 0;

  border-radius: 9px;

  font-size: 13px;

  line-height: 1.45;
}


/* =========================================================
   LOGIN BUTTON
========================================================= */

.login-button {
  height: 51px;

  margin-top: 2px;

  padding: 0 18px;

  border: 0;

  border-radius: 10px;

  background:
    linear-gradient(
      135deg,
      #1677ff 0%,
      #075bdc 100%
    );

  color: #ffffff;

  font-size: 14px;
  font-weight: 650;

  box-shadow:
    0 9px 20px rgba(37, 99, 235, 0.22);

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}


/* Button Hover */

.login-button:hover {
  transform: translateY(-1px);

  filter: brightness(1.04);

  background:
    linear-gradient(
      135deg,
      #1677ff 0%,
      #075bdc 100%
    );

  box-shadow:
    0 12px 25px rgba(37, 99, 235, 0.28);
}


/* Button Active */

.login-button:active {
  transform: translateY(0);

  box-shadow:
    0 6px 15px rgba(37, 99, 235, 0.2);
}


/* Disabled */

.login-button:disabled {
  opacity: 0.7;

  transform: none;

  box-shadow: none;
}


/* =========================================================
   REGISTER SECTION
========================================================= */

.register-section {
  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 7px;

  margin-top: 27px;

  text-align: center;
}


/* Register Text */

.register-section > span {
  color: #8a94a5;

  font-size: 12px;

  line-height: 1.4;
}


/* Register Link */

.register-link {
  display: inline-flex;
  align-items: center;

  color: #2563eb;

  font-size: 13px;
  font-weight: 650;

  line-height: 1.4;

  text-decoration: none;

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}


/* Register Hover */

.register-link:hover {
  color: #075bdc;

  transform: translateY(-1px);
}


/* =========================================================
   FOOTER
========================================================= */

.login-footer {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 7px;

  margin-top: 32px;
  padding-top: 18px;

  border-top: 1px solid #edf0f4;

  color: #a0a8b5;

  font-size: 10px;

  line-height: 1.4;
}


/* Security Icon */

.login-footer > i {
  color: #22a06b;

  font-size: 11px;
}


/* Footer Dot */

.footer-dot {
  color: #d1d5db;
}


/* =========================================================
   FORM VALIDATION
========================================================= */

.custom-input .form-control.is-invalid {
  border-color: #dc3545;

  box-shadow:
    0 0 0 3px rgba(220, 53, 69, 0.08);
}

.custom-input .form-control.is-valid {
  border-color: #198754;

  box-shadow:
    0 0 0 3px rgba(25, 135, 84, 0.07);
}


/* =========================================================
   RESPONSIVE - TABLET
========================================================= */

@media (max-width: 1199.98px) {

  .login-brand-section {
    padding: 50px 6%;
  }

  .hero-content h2 {
    font-size: 45px;
  }

  .login-form-section {
    padding: 35px;
  }

  .login-card {
    padding: 40px;
  }

}


/* =========================================================
   RESPONSIVE - MOBILE / BELOW LG
========================================================= */

@media (max-width: 991.98px) {

  /* Hide desktop branding */

  .login-brand-section {
    display: none;
  }


  /* Login Area */

  .login-form-section {
    min-height: 100vh;

    padding: 30px 20px;
  }


  /* Mobile Brand */

  .mobile-brand {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    margin-bottom: 38px;
  }


  .mobile-brand .brand-icon {
    width: 48px;
    height: 48px;

    border-radius: 13px;

    font-size: 21px;
  }


  .mobile-brand .brand-title {
    color: #111827;

    font-size: 21px;
  }


  .mobile-brand .brand-title span {
    color: #2563eb;
  }


  .mobile-brand .brand-subtitle {
    color: #8b95a5;

    font-size: 10px;
  }

}


/* =========================================================
   RESPONSIVE - SMALL MOBILE
========================================================= */

@media (max-width: 575.98px) {

  .login-form-section {
    padding: 18px 14px;
  }


  .login-card {
    padding: 32px 23px;

    border-radius: 17px;
  }


  .mobile-brand {
    margin-bottom: 32px;
  }


  .login-heading {
    margin-bottom: 27px;
  }


  .login-heading h2 {
    font-size: 24px;
  }


  .login-heading p {
    font-size: 12px;
  }


  .custom-input .form-control {
    height: 49px;

    font-size: 13px;
  }


  .login-button {
    height: 49px;
  }


  .register-section {
    margin-top: 24px;
  }


  .login-footer {
    flex-wrap: wrap;

    margin-top: 27px;
  }

}


/* =========================================================
   VERY SMALL DEVICES
========================================================= */

@media (max-width: 380px) {

  .login-card {
    padding: 28px 18px;
  }


  .mobile-brand .brand-title {
    font-size: 19px;
  }


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


  .custom-input .form-control {
    padding-left: 42px;
    padding-right: 42px;
  }

}

/* Demo credentials card */
.demo-credentials {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid #dbe5f0;
  border-radius: 14px;
  background: #f8fafc;
}

.demo-credentials-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.demo-credentials-heading > i {
  font-size: 22px;
  color: #2563eb;
}

.demo-credentials-heading h6 {
  margin: 0 0 4px;
  font-weight: 700;
  color: #172033;
}

.demo-credentials-heading p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #64748b;
}

.demo-credential-field {
  margin-top: 12px;
}

.demo-credential-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.demo-credential-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.demo-credential-value code {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #1e293b;
  font-size: 12px;
}

.demo-copy-button {
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: #2563eb;
  font-size: 12px;
  font-weight: 600;
}

.demo-readonly-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  font-size: 12px;
  color: #64748b;
}
