/* ==========================================================================
   SITORY — MODERN LOGIN PAGE STYLES (login.css)
   ========================================================================== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-primary, 'Inter', sans-serif);
  background-color: #0B0F19;
  color: var(--gray-800, #1E293B);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Main Split Layout */
.login-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* Left Hero Branding Column */
.login-left {
  display: none;
  position: relative;
  width: 48%;
  background: radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.15), transparent 40%),
              radial-gradient(circle at 80% 80%, rgba(14, 165, 233, 0.15), transparent 45%),
              linear-gradient(145deg, #0F172A 0%, #111827 50%, #030712 100%);
  padding: 3.5rem;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

@media (min-width: 992px) {
  .login-left {
    display: flex;
  }
}

/* Subtle decorative circles */
.decorative-circles {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(79, 70, 229, 0.05) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(40px);
}

.login-left::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(40px);
}

.login-left .branding {
  position: relative;
  z-index: 2;
  margin-top: auto;
  margin-bottom: auto;
  max-width: 460px;
}

.login-left .logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  font-size: 1.5rem;
  font-weight: 800;
  color: #FFFFFF;
  text-decoration: none;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.login-left .logo svg {
  color: #6366F1;
  filter: drop-shadow(0 0 12px rgba(99, 102, 241, 0.5));
}

.login-left h1 {
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  color: #FFFFFF;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem 0;
}

.login-left h1 span {
  background: linear-gradient(135deg, #818CF8 0%, #38BDF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-left p {
  color: #94A3B8;
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

/* Feature Badges / Highlights */
.feature-pills {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 2;
}

.feature-pill {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.875rem 1.25rem;
  border-radius: 12px;
  color: #E2E8F0;
  font-size: 0.9375rem;
  backdrop-filter: blur(12px);
  transition: all 0.2s ease;
}

.feature-pill:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateX(4px);
}

.feature-pill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.2);
  color: #818CF8;
  flex-shrink: 0;
}

.login-left-footer {
  position: relative;
  z-index: 2;
  color: #64748B;
  font-size: 0.8125rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Right Form Column */
.login-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  background-color: #F8FAFC;
  position: relative;
}

@media (min-width: 640px) {
  .login-right {
    padding: 3.5rem 2.5rem;
  }
}

.login-box {
  width: 100%;
  max-width: 440px;
  background: #FFFFFF;
  padding: 2.5rem 2.25rem;
  border-radius: 20px;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.03), 0 0 0 1px rgba(226, 232, 240, 0.8);
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Mobile Brand Header */
.mobile-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  font-size: 1.35rem;
  font-weight: 800;
  color: #0F172A;
  text-decoration: none;
  margin-bottom: 2rem;
}

@media (min-width: 992px) {
  .mobile-brand {
    display: none;
  }
}

.login-box h2 {
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  font-size: 1.75rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.025em;
  margin: 0 0 0.5rem 0;
}

.login-box .subtitle {
  color: #64748B;
  font-size: 0.9375rem;
  margin: 0 0 2rem 0;
  line-height: 1.5;
}

/* Form Groups & Inputs */
.form-group {
  margin-bottom: 1.25rem;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.5rem;
}

.input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1rem;
  color: #94A3B8;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: color 0.2s ease;
}

.form-group input[type="text"],
.form-group input[type="password"] {
  width: 100%;
  height: 48px;
  padding: 0 1rem 0 2.75rem;
  font-family: var(--font-primary, 'Inter', sans-serif);
  font-size: 0.9375rem;
  color: #0F172A;
  background-color: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  outline: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group input[type="password"] {
  padding-right: 2.75rem;
}

.form-group input::placeholder {
  color: #94A3B8;
  font-weight: 400;
}

.form-group input:hover {
  border-color: #CBD5E1;
  background-color: #FFFFFF;
}

.form-group input:focus {
  border-color: #4F46E5;
  background-color: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.input-container:focus-within .input-icon {
  color: #4F46E5;
}

/* Password Toggle Button */
.password-toggle-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0.375rem;
  color: #94A3B8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color 0.2s ease;
}

.password-toggle-btn:hover {
  color: #334155;
}

/* Form Options (Remember Me / Forgot) */
.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #475569;
  cursor: pointer;
  user-select: none;
  font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #4F46E5;
  border-radius: 4px;
  cursor: pointer;
}

.forgot-link {
  color: #4F46E5;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.forgot-link:hover {
  color: #4338CA;
  text-decoration: underline;
}

/* Error Message Alert */
.error-message {
  display: none;
  padding: 0.875rem 1rem;
  background-color: #FEF2F2;
  border: 1px solid #FCA5A5;
  border-radius: 10px;
  color: #B91C1C;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  line-height: 1.45;
  animation: shake 0.3s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* Submit Button */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, #4F46E5 0%, #4338CA 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  font-family: var(--font-primary, 'Inter', sans-serif);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #4338CA 0%, #3730A3 100%);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
  transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  box-shadow: none;
}

/* Spinner for Loading State */
.btn-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #FFFFFF;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Bottom Signup Link */
.signup-link {
  text-align: center;
  color: #64748B;
  font-size: 0.875rem;
  margin-top: 1.75rem;
  margin-bottom: 0;
}

.signup-link a {
  color: #4F46E5;
  font-weight: 600;
  text-decoration: none;
}

.signup-link a:hover {
  text-decoration: underline;
}
