/* =========================
   GLOBAL & RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

:root {
  --primary: #4f6cff;
  --primary-dark: #3858f5;
  --text: #1d2746;
  --muted: #6d7386;
  --border: #e3e7ef;
  --bg: #f5f8ff;
}

body {
  background: linear-gradient(135deg, #eef3ff, #f8fbff);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.bg-circle {
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  z-index: 0;
}

.bg-1 {
  width: 280px;
  height: 280px;
  background: rgba(79, 108, 255, 0.18);
  top: -80px;
  left: -80px;
}

.bg-2 {
  width: 220px;
  height: 220px;
  background: rgba(79, 108, 255, 0.12);
  right: -60px;
  bottom: -60px;
}

.login-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 30px;
}

.login-card {
  width: 960px;
  height: 560px;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  box-shadow: 0 20px 60px rgba(34, 54, 120, 0.1);
}

.left-panel {
  width: 52%;
  background: linear-gradient(180deg, #f9fbff, #eef4ff);
  padding: 26px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.top-left-circle {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(79, 108, 255, 0.08);
  top: -80px;
  left: -80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.logo-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.logo span {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.left-content {
  margin-top: 40px;
  position: relative;
  z-index: 2;
}

.left-content h1 {
  font-size: 30px;
  line-height: 1.3;
  color: var(--text);
  font-weight: 700;
}

.left-content h1 span {
  color: var(--primary);
}

.left-content p {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 320px;
}

.blue-line {
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 99px;
  margin-top: 20px;
}

.image-area {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
}

.ellipse {
  position: absolute;
  width: 280px;
  height: 60px;
  border-radius: 50%;
  background: rgba(79, 108, 255, 0.08);
  bottom: 20px;
}

.laptop {
  width: 68%;
  position: relative;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.dot {
  position: absolute;
  width: 56px;
  height: 56px;
  background-image: radial-gradient(var(--primary) 1.4px, transparent 1.4px);
  background-size: 10px 10px;
  opacity: 0.25;
}

.top-dot {
  right: 24px;
  top: 90px;
}
.bottom-dot {
  left: 30px;
  bottom: 120px;
}

.right-panel {
  width: 48%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 38px;
}

.form-container {
  width: 100%;
  max-width: 340px;
}

.form-container h2 {
  font-size: 25px;
  color: var(--text);
  font-weight: 700;
}

.subtitle {
  margin-top: 6px;
  margin-bottom: 22px;
  font-size: 13px;
  color: var(--muted);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
  color: #333;
}

.input-group {
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  transition: 0.25s;
}

.input-group:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79, 108, 255, 0.08);
}

.input-group > i {
  color: #8b91a5;
  font-size: 16px;
}

.input-group input {
  flex: 1;
  border: none;
  outline: none;
  background: none;
  font-size: 13px;
  padding-left: 10px;
}

.toggle-password {
  border: none;
  background: none;
  cursor: pointer;
  color: #8b91a5;
}

.option-area {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0 18px;
  font-size: 12px;
}

.remember {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}

.option-area a,
.bottom-text a {
  color: var(--primary);
  text-decoration: none;
}

.login-btn {
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(79, 108, 255, 0.28);
}

.divider {
  margin: 18px 0;
  text-align: center;
  color: #999;
  font-size: 12px;
  position: relative;
}

.divider:before,
.divider:after {
  content: "";
  position: absolute;
  width: 34%;
  height: 1px;
  background: #eceff5;
  top: 50%;
}

.divider:before {
  left: 0;
}
.divider:after {
  right: 0;
}

.google-btn {
  width: 100%;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
}

.google-btn:hover {
  background: #f8faff;
}

.google-btn img {
  width: 18px;
}

.bottom-text {
  margin-top: 18px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 1024px) {
  .login-card {
    width: 92%;
    height: auto;
    flex-direction: column;
  }
  .left-panel,
  .right-panel {
    width: 100%;
  }
  .left-content {
    text-align: center;
  }
  .left-content p {
    margin-left: auto;
    margin-right: auto;
  }
  .blue-line {
    margin-left: auto;
    margin-right: auto;
  }
  .laptop {
    width: 48%;
    margin-top: 24px;
  }
}

@media (max-width: 640px) {
  .login-wrapper {
    padding: 14px;
  }
  .login-card {
    border-radius: 18px;
  }
  .left-panel {
    padding: 22px;
  }
  .right-panel {
    padding: 22px;
  }
  .left-content h1 {
    font-size: 24px;
  }
}

/* =========================
   APP TOAST NOTIFICATION
========================= */

.app-toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
}

.app-toast {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 340px;
  min-height: 68px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e8ebf2;
  border-radius: 14px;
  box-shadow: 0 12px 35px rgba(34, 54, 120, 0.14);
  opacity: 1;
  pointer-events: auto;
  animation: none;
  transition: opacity 0.3s ease;
  transform: none;
}

.app-toast-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 17px;
}

.app-toast.success .app-toast-icon {
  background: #edf9f3;
  color: #219653;
}

.app-toast.danger .app-toast-icon {
  background: #fff1f1;
  color: #d64545;
}

.app-toast-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.app-toast-content strong {
  color: #1d2746;
  font-size: 13px;
  font-weight: 600;
}

.app-toast-content span {
  color: #6d7386;
  font-size: 11.5px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

@keyframes appToastIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .app-toast-container {
    top: 16px;
    right: 16px;
    left: 16px;
    align-items: stretch;
  }

  .app-toast {
    width: 100%;
  }
}
