:root{
  --bg1:#28c6d1;
  --bg2:#89e5ee;
  --card:#ffffff;
  --text:#0b1220;
  --muted:rgba(0,0,0,.55);
  --border:#e7eef5;
  --btn1:#7c6cf6;
  --btn2:#a78bfa;
  --radius:28px;
  --shadow: 0 18px 60px rgba(0,0,0,.16);
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: #f4fbfc;
  color: var(--text);
}

/* ✅ Outer rounded panel like Camweara */
.auth-wrap{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding: 22px;
}

.auth-shell{
  width: min(1220px, 96vw);
  min-height: 680px;
  border-radius: 34px;
  overflow:hidden;
  background: linear-gradient(135deg, var(--bg1), var(--bg2));
  position:relative;
  box-shadow: 0 18px 80px rgba(0,0,0,.12);
}

/* ✅ diagonal lines right side */
.auth-shell:after{
  content:"";
  position:absolute; inset:-20%;
  background:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,.18) 0px,
      rgba(255,255,255,.18) 2px,
      transparent 2px,
      transparent 26px);
  opacity:.55;
  transform: translateX(45%);
  pointer-events:none;
}

/* ✅ layout */
.auth-grid{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns: 1.2fr .85fr;
  min-height: 680px;
}

/* LEFT */
.left{
  padding: 34px 34px 28px;
  display:flex;
  flex-direction:column;
  gap: 18px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  font-weight: 900;
  letter-spacing:.3px;
  color:#0b1220;
}
.brand img{height:40px;width:auto}
.brand .name{font-size:22px}

/* Title */
.hero-title{
  font-size: 34px;
  font-weight: 500;
  color: rgba(255,255,255,.92);
  text-shadow: 0 6px 20px rgba(0,0,0,.10);
  margin-top: 8px;
}

/* Demo block */
.demo{
  margin-top: 8px;
  border-radius: 14px;
  overflow:hidden;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.30);
  width: min(560px, 96%);
}
.demo img{width:100%;display:block}

/* Shopify line */
.shopify{
  display:flex;
  align-items:center;
  gap: 10px;
  color: rgba(255,255,255,.92);
  font-weight: 700;
  margin-top: 6px;
}
.shopify .dot{
  width: 34px; height: 34px;
  border-radius: 10px;
  background: rgba(255,255,255,.22);
  display:grid;
  place-items:center;
  font-size: 16px;
}

/* RIGHT */
.right{
  padding: 34px;
  display:flex;
  justify-content:center;
  align-items:center;
}

.card{
  width: min(440px, 92vw);
  background: rgba(255,255,255,.98);
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: 34px 30px;
  border: 1px solid rgba(0,0,0,.06);
}

.card h2{
  margin: 0 0 6px;
  font-size: 32px;
  letter-spacing:.2px;
}

.card .sub{
  margin: 0 0 18px;
  color: rgba(0,0,0,.45);
  font-size: 14px;
}

.field{
  margin-top: 14px;
}
label{
  display:block;
  font-size: 13px;
  color: rgba(0,0,0,.55);
  margin-bottom: 6px;
}
input{
  width:100%;
  padding: 14px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  outline:none;
  font-size: 14px;
  background: #fff;
}
input:focus{
  border-color: rgba(124,108,246,.55);
  box-shadow: 0 0 0 4px rgba(124,108,246,.12);
}

/* row links */
.row{
  display:flex;
  justify-content:flex-end;
  margin-top: 10px;
}
.row a{
  font-size: 13px;
  color: #16a5b1;
  text-decoration:none;
  font-weight:700;
}

/* button */
.btn{
  width:100%;
  margin-top: 18px;
  padding: 14px 18px;
  border:0;
  border-radius: 12px;
  color:#fff;
  font-weight: 900;
  font-size: 15px;
  cursor:pointer;
  background: linear-gradient(135deg, var(--btn1), var(--btn2));
}

/* bottom link */
.bottom{
  margin-top: 14px;
  text-align:center;
  color: rgba(0,0,0,.50);
  font-size: 14px;
}
.bottom a{
  color:#16a5b1;
  font-weight:800;
  text-decoration:none;
}

.err{
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,60,95,.10);
  border: 1px solid rgba(255,60,95,.22);
  color: rgba(180,20,40,.95);
  font-size: 13px;
}

.footer-link{
  position:absolute;
  bottom: 16px;
  right: 24px;
  z-index: 3;
  font-size: 13px;
  color: rgba(255,255,255,.85);
  text-decoration:none;
}

/* ✅ MOBILE */
@media (max-width: 900px){
  .auth-grid{ grid-template-columns: 1fr; }
  .left{ padding: 24px; }
  .right{ padding: 24px; }
  .demo{ width: 100%; }
  .hero-title{ font-size: 28px; }
  .auth-shell{ min-height: auto; }
  .footer-link{ position:static; display:block; padding: 0 24px 18px; }
}
