/* =========================================================
   GLOBAL RESET
========================================================= */
* {
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  margin: 0;
  background: #ffffff;
}

/* =========================================================
   LAYOUT
========================================================= */
.login-container {
  display: flex;
  height: 100vh;
  padding: 8px;
  gap: 8px;
}

/* =========================================================
   LEFT SIDE (FORM)
========================================================= */
.login-left {
  width: 50%;
  padding-left: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-box {
  width: 420px;
}

/* SWITCH */
.login-switch {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.login-switch button {
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid #ddd;
  background: #ffffff;
  cursor: pointer;
  font-size: 13px;
}

.login-switch .active {
  background: #111;
  color: #fff;
  border-color: #111;
}

/* TEXT */
h1 {
  font-size: 28px;
  margin-bottom: 6px;
}

.subtitle {
  color: #777;
  margin-bottom: 28px;
  font-size: 14px;
}

/* ALERTS */
.alert-error,
.alert-success {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
}

.alert-error {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FEE2E2;
}

.alert-error svg {
  flex-shrink: 0;
  margin-top: 1px;
}

.alert-success {
  background: #D1FAE5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

.alert-success svg {
  flex-shrink: 0;
  margin-top: 1px;
}

/* FORM */
label {
  font-size: 13px;
  margin-bottom: 6px;
  display: block;
}

input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-bottom: 18px;
  font-size: 14px;
}

input:focus {
  outline: none;
  border-color: #3B82F6;
}

.password-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.password-row a {
  font-size: 12px;
  text-decoration: none;
  color: #111;
}

/* BUTTONS */
.btn-primary {
  width: 100%;
  padding: 12px;
  background: #2b2b2b;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  margin-bottom: 18px;
}

.btn-primary:hover {
  background: #1a1a1a;
}

.divider {
  position: relative;
  text-align: center;
  color: #aaa;
  font-size: 12px;
  margin: 14px 0;
}

.divider::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: #E5E7EB;
}

.divider span {
  position: relative;
  background: #ffffff;
  padding: 0 12px;
  z-index: 1;
}

/* =========================================================
   SOCIAL LOGIN BUTTONS - MODERN STYLING
========================================================= */
.social-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.btn-social {
  position: relative;
  width: 100%;
  height: 56px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1.5px solid #E5E7EB;
  background: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.btn-social::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(0, 0, 0, 0.02) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.btn-social:hover:not(:disabled)::before {
  opacity: 1;
}

.btn-social img,
.btn-social svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.btn-social:hover:not(:disabled) {
  border-color: #D1D5DB;
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.btn-social:hover:not(:disabled) img,
.btn-social:hover:not(:disabled) svg {
  transform: scale(1.05);
}

.btn-social:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-social:disabled {
  opacity: 0.35;
  cursor: not-allowed !important;
  background: #FAFBFC;
  border-color: #F0F1F3;
  pointer-events: none;
}

.coming-soon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  padding: 5px 11px;
  background: linear-gradient(135deg, #9CA3AF 0%, #6B7280 100%);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.signup-text {
  margin-top: 22px;
  font-size: 13px;
  text-align: center;
}

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

/* =========================================================
   RIGHT SIDE (IMAGE + QUOTE)
========================================================= */
.login-right {
  width: 50%;
  position: relative;
  overflow: hidden;
  border-radius: 28px;
}

.login-bg-slider {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.login-bg-slider::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.2),
      rgba(0, 0, 0, 0.55));
}

.login-bg-slider.active {
  transform: translateX(0);
}

.login-bg-slider.next {
  transform: translateX(100%);
}

.login-bg-slider.slide-in {
  animation: slideInBg 0.8s ease-out forwards;
}

.login-bg-slider.slide-out {
  animation: slideOutBg 0.8s ease-out forwards;
}

/* =========================================================
   QUOTE CARD
========================================================= */
.quote-card {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  width: calc(100% - 80px);
  max-width: 720px;
  padding: 26px 32px;
  border-radius: 20px;
  background: rgba(30, 30, 30, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  color: #ffffff;
  z-index: 2;
  animation: slideInUp 0.6s ease-out;
}

.quote-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg,
      rgba(255, 255, 255, 0.25),
      rgba(255, 255, 255, 0.05),
      transparent);
  pointer-events: none;
}

.quote {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 14px;
}

.author strong {
  font-size: 14px;
  display: block;
}

.author span {
  font-size: 12px;
  opacity: 0.8;
  display: block;
}

/* =========================================================
   ANIMATIONS
========================================================= */
@keyframes slideInUp {
  from {
    transform: translate(-50%, 20px);
    opacity: 0;
  }

  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

@keyframes slideInBg {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

@keyframes slideOutBg {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 992px) {
  .login-container {
    flex-direction: column;
  }

  .login-left,
  .login-right {
    width: 100%;
  }

  .login-right {
    min-height: 360px;
  }
}

@media (max-width: 768px) {
  .quote-card {
    width: calc(100% - 32px);
    bottom: 16px;
    padding: 20px;
    border-radius: 16px;
  }
}