:root {
  --purple-1: #9c4dff;
  --purple-2: #6a0dad;
  --text-dark: #111827;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, Arial, sans-serif;
  background: #f7f8fa;
  color: var(--text-dark);
}

/* --- MAIN WRAPPER --- */
.wrap {
  max-width: 1100px;
  margin: 50px auto;
  display: flex;
  min-height: 80vh;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(16, 24, 40, 0.15);
  background: #fff;
}

/* --- LEFT SIDE --- */
.left {
  flex: 1;
  padding: 60px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.top-left {
  position: static;
  margin-bottom: 20px;
}

.brand img {
  height: 60px;
  width: auto;
  object-fit: contain;
  display: block;
  margin-bottom: 20px;
}

.form-wrap {
  max-width: 400px;
}

.heading {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
}

.input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-bottom: 12px;
  font-size: 15px;
}

.input:focus {
  border-color: var(--purple-1);
  outline: none;
  box-shadow: 0 0 0 3px rgba(156, 77, 255, 0.1);
}

.agreement {
  font-size: 13px;
  color: #555;
  margin-bottom: 10px;
}
.agreement a {
  color: var(--purple-2);
  text-decoration: none;
}
.agreement a:hover {
  text-decoration: underline;
}

.btn {
  background: linear-gradient(135deg, var(--purple-1), var(--purple-2));
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  cursor: pointer;
  font-weight: 600;
  transition: opacity 0.2s;
}
.btn:hover {
  opacity: 0.9;
}
.btn.small {
  width: 70%;
  margin-top: 4px;
}

.links-below {
  display: flex;
  flex-direction: column;
  margin-top: 14px;
  gap: 6px;
}
.links-below a {
  color: var(--purple-2);
  font-size: 14px;
  text-decoration: none;
}
.links-below a:hover {
  text-decoration: underline;
}

/* --- RIGHT SIDE --- */
.right {
  flex: 1;
  padding: 60px 40px;
  background: linear-gradient(135deg, var(--purple-1), var(--purple-2));
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  min-width: 380px;
}

.right h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.right p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  max-width: 320px;
}

.phone-image {
  width: 220px;
  height: 420px;
  border-radius: 40px;
  background: #fff;
  position: relative;
  overflow: hidden;
  margin-top: 20px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}
.phone-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(135deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(-135deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.6;
}
.phone-image .screen {
  position: absolute;
  inset: 14px;
  border-radius: 28px;
  overflow: hidden;
}

.shimmer {
  position: absolute;
  top: 0;
  left: -120%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.25),
    rgba(255, 255, 255, 0)
  );
  animation: shimmer 3s infinite linear;
  transform: skewX(-18deg);
  mix-blend-mode: screen;
}
@keyframes shimmer {
  0% {
    left: -120%;
  }
  100% {
    left: 140%;
  }
}

/* --- FOOTER --- */
footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}
footer a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  margin-left: 14px;
}
footer a:hover {
  text-decoration: underline;
}

/* --- RESPONSIVE FIXES --- */

/* ✅ Keep side-by-side on tablet (down to 768px) */
@media (min-width: 769px) {
  .wrap {
    flex-direction: row;
  }
}

/* ✅ Mobile: stack vertically */
@media (max-width: 768px) {
  .wrap {
    flex-direction: column;
    margin: 20px;
  }

  .right {
    width: 100%;
    padding: 40px 30px;
    border-radius: 0 0 14px 14px;
  }

  .phone-image {
    align-self: center;
  }

  footer {
    position: static;
    margin-top: 24px;
  }
}
