/* stylelint-disable */
/* ============================================================
   LOGIN — MODERN & PROFESSIONAL DESIGN
   NoFakeBiz Platform
   Amir & Mixel — 2025
============================================================ */

/* ============================================================
   GLOBAL RESET & BASE
============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f1f7f4;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding: 0;
  position: relative;
  overflow-x: hidden;
}

/* ============================================================
   LOGIN PAGE CONTAINER
============================================================ */
.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  position: relative;
}

/* ============================================================
   PLATFORM HEADER
============================================================ */
.login-header {
  text-align: center;
  margin-bottom: 2rem;
  animation: fadeInDown 0.6s ease-out;
}

.login-header .platform-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, #1a7f4a 0%, #156b3f 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(26, 127, 74, 0.28);
  font-size: 2rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.login-header .platform-name {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #1a7f4a 0%, #156b3f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  letter-spacing: -0.02em;
}

.login-header .platform-tagline {
  font-size: 0.9375rem;
  color: #64748b;
  margin-top: 0.5rem;
  font-weight: 400;
}

/* ============================================================
   BACK TO SITE LINK
============================================================ */
.back-to-site {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: #64748b;
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 400;
}

.back-to-site i {
  transition: transform 0.15s ease;
  display: inline-block;
}

.back-to-site:hover {
  color: #1a7f4a;
  text-decoration: underline;
}

.back-to-site:hover i {
  transform: translateX(-3px);
}

.back-to-site:active {
  color: #334155;
}

/* ============================================================
   LOGIN CONTAINER
============================================================ */
.login-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1100px;
  width: 100%;
  gap: 0;
  background: white;
  border-radius: 24px;
  border: 1px solid rgba(26, 127, 74, 0.22);
  box-shadow: 0 14px 42px rgba(15, 33, 51, 0.08), 0 2px 10px rgba(26, 127, 74, 0.06);
  overflow: hidden;
  animation: fadeInUp 0.6s ease-out;
}

.login-left,
.login-right {
  padding: 3rem;
}

.login-left {
  border-right: 1px solid #e8f4ee;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-right {
  background: linear-gradient(135deg, #ecf8f1 0%, #e8f4ee 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* ============================================================
   LOGIN FORM
============================================================ */
.login-left h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.5rem 0;
}

.login-left h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #64748b;
  margin: 0 0 2rem 0;
}

/* ============================================================
   ERROR MESSAGE
============================================================ */
.error-message {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border: 2px solid #ef4444;
  color: #991b1b;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* ============================================================
   FORM GROUPS
============================================================ */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.5rem;
}

.form-group input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid rgba(26, 127, 74, 0.28);
  border-radius: 12px;
  font-size: 0.9375rem;
  font-family: inherit;
  color: #0f2133;
  background: #ecf8f1;
  transition: all 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #238a57;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26, 127, 74, 0.12);
}

.form-group input::placeholder {
  color: #94a3b8;
}

/* ============================================================
   CAPTCHA CONTAINER
============================================================ */
.captcha-container {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, #ecf8f1 0%, #e8f4ee 100%);
  border-radius: 12px;
  border: 1px solid rgba(26, 127, 74, 0.28);
}

.captcha-container label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0f2133;
  margin-bottom: 0.75rem;
}

.captcha-container #captcha-question {
  color: #1a7f4a;
  font-weight: 700;
  font-size: 1.0625rem;
}

.captcha-container input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid rgba(26, 127, 74, 0.28);
  border-radius: 10px;
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
  font-family: inherit;
  color: #0f2133;
  background: #ecf8f1;
  transition: all 0.2s ease;
}

.captcha-container input:focus {
  outline: none;
  border-color: #238a57;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26, 127, 74, 0.12);
}

.captcha-container #refreshCaptcha {
  width: 100%;
  padding: 0.5rem 1rem;
  height: auto;
  min-height: 38px;
  background: #1a7f4a;
  color: #fff;
  border: 1px solid #156b3f;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  box-shadow: 0 2px 8px rgba(26, 127, 74, 0.2);
}

.captcha-container #refreshCaptcha:hover {
  background: #156b3f;
  border-color: #125a36;
}

.captcha-container #refreshCaptcha:active {
  background: #125a36;
}

/* ============================================================
   LOGIN BUTTON
============================================================ */
.login-button {
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #1a7f4a 0%, #156b3f 100%);
  color: white;
  border: 1px solid #156b3f;
  border-radius: 12px;
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(26, 127, 74, 0.25);
  margin-bottom: 1.5rem;
}

.login-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 127, 74, 0.3);
}

.login-button:active {
  transform: translateY(0);
}

.login-button:disabled {
  background: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* ============================================================
   TERMS & LINKS
============================================================ */
.terms {
  text-align: center;
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.terms a {
  color: #1a7f4a;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.terms a:hover {
  color: #156b3f;
  text-decoration: underline;
}

.forgot-password {
  text-align: center;
  margin-top: 1rem;
}

.forgot-password a {
  color: #1a7f4a;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.forgot-password a:hover {
  color: #156b3f;
  text-decoration: underline;
}

/* ============================================================
   RIGHT SECTION (PROMOTIONAL)
============================================================ */
.login-right img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.login-right h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 1rem 0;
}

.login-right p {
  font-size: 1rem;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 2rem 0;
  max-width: 400px;
}

.store-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}

.coming-soon-text {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coming-soon-text i {
  color: #1a7f4a;
}

.store-images {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  opacity: 0.6;
  filter: grayscale(20%);
}

.store-images img {
  height: 50px;
  width: auto;
  transition: transform 0.2s ease;
  margin: 0;
  box-shadow: none;
  cursor: not-allowed;
}

/* Hide broken images until actual images are added */
.store-images img[src=""],
.store-images img:not([src]) {
  display: none;
}

/* Alternative: hide images that fail to load */
.store-images img {
  object-fit: contain;
}

.store-images img[src]:not([src=""]) {
  display: block;
}

.store-links img {
  height: 50px;
  width: auto;
  transition: transform 0.2s ease;
  margin: 0;
  box-shadow: none;
  cursor: not-allowed;
}

.store-links img:hover {
  transform: scale(1.02);
  opacity: 0.8;
}

/* ============================================================
   PASSWORD FEEDBACK
============================================================ */
.password-feedback {
  font-size: 0.875rem;
  margin-top: -0.5rem;
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  min-height: 2.5rem;
  display: flex;
  align-items: center;
}

.password-feedback.success {
  background: #ecfdf5;
  border-color: #34d399;
  color: #065f46;
}

.password-feedback.error {
  background: #fef2f2;
  border-color: #ef4444;
  color: #991b1b;
}

/* ============================================================
   ANIMATIONS
============================================================ */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   RESPONSIVE DESIGN
============================================================ */
@media (max-width: 968px) {
  .login-container {
    grid-template-columns: 1fr;
    max-width: 600px;
  }

  .login-left {
    border-right: none;
    border-bottom: 1px solid #e8f4ee;
  }

  .login-right {
    padding: 2rem;
  }

  .login-header .platform-name {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .login-page {
    padding: 1rem;
  }

  .login-left,
  .login-right {
    padding: 2rem 1.5rem;
  }

  .login-header .platform-name {
    font-size: 1.5rem;
  }

  .login-left h2 {
    font-size: 1.5rem;
  }

  .login-left h3 {
    font-size: 1.125rem;
  }
}

/* ============================================================
   FOCUS VISIBLE FOR ACCESSIBILITY
============================================================ */
*:focus-visible {
  outline: 2px solid #1a7f4a;
  outline-offset: 2px;
}
