/* ==========================================================================
   La Maluk CRM — Login Page Styles
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

html, body {
  height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 40%, #0F172A 100%);
  position: relative;
  overflow: hidden;
}

/* Background decoration */
body::before {
  content: '';
  position: fixed;
  top: -40%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  bottom: -30%;
  left: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16,185,129,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* === LOGIN CARD === */
.login-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 44px 40px;
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 10;
  backdrop-filter: blur(20px);
  box-shadow:
    0 25px 50px -12px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.05);
}

/* Logo */
.login-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.login-logo-icon {
  width: 44px;
  height: 44px;
  background: #2563EB;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(37,99,235,0.4);
}

.login-logo-icon svg {
  width: 24px;
  height: 24px;
  color: #fff;
}

.login-logo-text {
  display: flex;
  flex-direction: column;
}

.login-logo-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #F1F5F9;
  line-height: 1.2;
}

.login-logo-sub {
  font-size: 0.75rem;
  color: #64748B;
}

/* Heading */
.login-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: #F1F5F9;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.login-subheading {
  font-size: 0.875rem;
  color: #64748B;
  margin-bottom: 28px;
}

/* Form */
.login-form-group {
  margin-bottom: 16px;
}

.login-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #94A3B8;
  margin-bottom: 6px;
}

.login-input-wrap {
  position: relative;
}

.login-input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #475569;
  pointer-events: none;
}

.login-input {
  width: 100%;
  padding: 11px 14px 11px 40px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: #F1F5F9;
  font-size: 0.9375rem;
  font-family: inherit;
  transition: all 0.15s ease;
  outline: none;
  appearance: none;
}

.login-input::placeholder {
  color: #475569;
}

.login-input:focus {
  border-color: #3B82F6;
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.2);
}

.login-input.invalid {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.15);
}

/* Submit button */
.login-btn {
  width: 100%;
  padding: 12px;
  background: #2563EB;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-top: 8px;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 14px rgba(37,99,235,0.35);
}

.login-btn:hover {
  background: #1D4ED8;
  box-shadow: 0 6px 20px rgba(37,99,235,0.45);
  transform: translateY(-1px);
}

.login-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(37,99,235,0.3);
}

/* Error message */
.login-error {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 8px;
  padding: 10px 14px;
  color: #FCA5A5;
  font-size: 0.8125rem;
  margin-bottom: 16px;
}

.login-error svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: #EF4444;
}

/* Footer */
.login-footer {
  text-align: center;
  margin-top: 24px;
  color: #334155;
  font-size: 0.75rem;
}

/* Links */
.login-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
}

.login-link {
  font-size: 0.8125rem;
  color: #3B82F6;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  padding: 0;
  text-decoration: none;
}
.login-link:hover { color: #60A5FA; }

/* Notification toast (for error/info) */
.login-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-100%);
  background: #1E293B;
  color: #F1F5F9;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.875rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 9999;
  transition: transform 0.3s ease;
  border: 1px solid rgba(255,255,255,0.08);
  max-width: 440px;
  text-align: center;
}
.login-toast.show {
  transform: translateX(-50%) translateY(0);
}
.login-toast.error {
  background: #7F1D1D;
  border-color: rgba(239,68,68,0.3);
}
