/* ========================================
   LOGIN PAGE - LEADS
   ======================================== */

:root {
  --auth-gradient: linear-gradient(135deg, #5b4dff 0%, #4f46e5 50%, #2563eb 100%);
  --auth-dark: #0f172a;
  --auth-dark-light: #1e293b;
  --auth-gray: #64748b;
  --auth-gray-light: #94a3b8;
  --auth-white: #ffffff;
  --auth-bg: #f8fafc;
  --auth-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --auth-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --auth-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
}

.auth-page {
  min-height: 100vh;
  background: var(--auth-bg);
  margin: 0;
  padding: 0;
}

.auth-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* ========================================
   LEFT SIDE
   ======================================== */
.auth-left {
  background: var(--auth-gradient);
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.auth-left::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.auth-left__content {
  position: relative;
  z-index: 1;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--auth-white);
  margin-bottom: 60px;
}

.auth-logo__icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.auth-left__text {
  margin-bottom: 48px;
}

.auth-left__text h1 {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--auth-white);
  margin-bottom: 16px;
  line-height: 1.2;
}

.auth-left__text p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  max-width: 400px;
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.auth-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.auth-feature__icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--auth-white);
  font-size: 1.25rem;
}

.auth-feature__text h4 {
  color: var(--auth-white);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.auth-feature__text p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  margin: 0;
}

.auth-left__float {
  position: absolute;
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.auth-left__float--1 {
  top: 10%;
  right: 10%;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.05));
  animation-delay: 0s;
}

.auth-left__float--2 {
  bottom: 20%;
  left: 5%;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(109, 40, 217, 0.05));
  animation-delay: 2s;
}

.auth-left__float--3 {
  bottom: 10%;
  right: 20%;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(22, 163, 74, 0.05));
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* ========================================
   RIGHT SIDE (FORM)
   ======================================== */
.auth-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: var(--auth-white);
}

.auth-form-container {
  width: 100%;
  max-width: 420px;
}

.auth-form-header {
  text-align: center;
  margin-bottom: 40px;
}

.auth-form-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--auth-dark);
  margin-bottom: 8px;
}

.auth-form-header p {
  font-size: 1rem;
  color: var(--auth-gray);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.auth-form__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-form__group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--auth-dark);
}

.auth-form__input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-form__input-wrapper > i:first-child {
  position: absolute;
  left: 16px;
  color: var(--auth-gray-light);
  font-size: 1rem;
  pointer-events: none;
}

.auth-form__input-wrapper input {
  width: 100%;
  padding: 14px 16px 14px 48px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--auth-dark);
  background: var(--auth-white);
  transition: all 0.3s ease;
}

.auth-form__input-wrapper input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(91, 77, 255, 0.14);
}

.auth-form__input-wrapper input::placeholder {
  color: var(--auth-gray-light);
}

.auth-form__toggle-password {
  position: absolute;
  right: 16px;
  background: none;
  border: none;
  color: var(--auth-gray-light);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.auth-form__toggle-password:hover {
  color: var(--auth-gray);
}

.auth-form__options {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-form__checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--auth-gray);
}

.auth-form__checkbox input {
  display: none;
}

.auth-form__checkbox .checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid #e2e8f0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.auth-form__checkbox input:checked + .checkmark {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.auth-form__checkbox input:checked + .checkmark::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.625rem;
  color: var(--auth-white);
}

.auth-form__forgot {
  font-size: 0.875rem;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.auth-form__forgot:hover {
  color: var(--auth-dark);
}

.auth-form__submit {
  width: 100%;
  padding: 16px;
  background: var(--auth-gradient);
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--auth-white);
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 8px;
}

.auth-form__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(91, 77, 255, 0.32);
}

.auth-form__submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 32px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.auth-divider span {
  font-size: 0.875rem;
  color: var(--auth-gray-light);
}

.auth-social {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-social__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  background: var(--auth-white);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--auth-dark);
  cursor: pointer;
  transition: all 0.3s ease;
}

.auth-social__btn:hover {
  background: var(--auth-bg);
  border-color: var(--auth-gray-light);
}

.auth-social__btn--google i {
  color: #ea4335;
  font-size: 1.125rem;
}

.auth-footer-text {
  text-align: center;
  margin-top: 32px;
  font-size: 0.9375rem;
  color: var(--auth-gray);
}

.auth-footer-text a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.auth-footer-text a:hover {
  color: var(--auth-dark);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .auth-container {
    grid-template-columns: 1fr;
  }

  .auth-left {
    display: none;
  }

  .auth-right {
    min-height: 100vh;
  }
}

@media (max-width: 480px) {
  .auth-right {
    padding: 24px;
  }

  .auth-form-header h2 {
    font-size: 1.5rem;
  }

  .auth-form__options {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
