/* =========================================================
   register.css
   - Same layout + styling as login.css
   - Responsive: 992 / 768 / 480
   - Use with: <link rel="stylesheet" href="register.css">
========================================================= */

:root{
  --purple: #6E2EBC;
  --text: #2a2a2a;
  --muted: rgba(0,0,0,.55);
  --line: rgba(0,0,0,.14);
  --field: rgba(0,0,0,.12);
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: #fff;
}

/* FULL WIDTH SPLIT LAYOUT */
.auth-shell{
  min-height: 100vh;
  width: 100%;
  display: grid;
  grid-template-columns: 520px 1fr; /* desktop like screenshot */
}

/* LEFT */
.auth-left{
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 52px 44px;
}

.auth-card{
  width: 100%;
  max-width: 420px;
}

.brand{
  text-align: center;
  margin-bottom: 16px;
}

.brand-logo{
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: inline-block;
  margin-bottom: 10px;
}

/* Title (Create an Account) */
.brand h1{
  margin: 0;
  font-size: 38px;
  font-weight: 650;
  color: rgba(0,0,0,.55);
}

/* SOCIAL BUTTONS */
.social-row{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 20px 0 18px;
}

.social-btn{
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: box-shadow .15s ease, transform .08s ease, border-color .15s ease;
}

.social-btn:hover{
  border-color: rgba(110,46,188,.35);
  box-shadow: 0 10px 22px rgba(110,46,188,.10);
  transform: translateY(-1px);
}

.social-btn img{
  width: 22px;
  height: 22px;
  display: block;
}

/* OR DIVIDER */
.divider{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin: 4px 0 20px;
  color: rgba(0,0,0,.40);
  font-weight: 700;
  letter-spacing: .6px;
  font-size: 12px;
}

.divider::before,
.divider::after{
  content:"";
  height: 1px;
  background: rgba(0,0,0,.14);
}

/* FORM */
.field{ margin-bottom: 18px; }

.label{
  display: block;
  font-size: 13px;
  font-weight: 650;
  color: rgba(0,0,0,.55);
  margin-bottom: 8px;
}

.input-wrap{ position: relative; }

.input{
  width: 100%;
  height: 48px;
  border-radius: 8px;
  border: 1px solid var(--field);
  padding: 0 14px;
  font-size: 14px;
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease;
  background: #fff;
}

.input::placeholder{ color: rgba(0,0,0,.28); }

.input:focus{
  border-color: rgba(110,46,188,.55);
  box-shadow: 0 0 0 3px rgba(110,46,188,.14);
}

.eye-btn{
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: rgba(0,0,0,.45);
  padding: 0;
}

.eye-btn:hover{ color: rgba(110,46,188,.85); }

.btn-primary{
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 10px;
  background: var(--purple);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: box-shadow .15s ease, transform .08s ease, background .15s ease;
  box-shadow: 0 14px 28px rgba(110,46,188,.22);
  margin-top: 10px; /* register layout breathes like screenshot */
}

.btn-primary:hover{
  background: #672bb2;
  box-shadow: 0 18px 36px rgba(110,46,188,.26);
  transform: translateY(-1px);
}

.btn-primary:active{ transform: translateY(0); }

/* Already a Member? */
.switch{
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  color: rgba(0,0,0,.55);
}

.switch a{
  color: var(--purple);
  text-decoration: none;
  font-weight: 800;
}
.switch a:hover{ text-decoration: underline; }

/* FOOTER */
.auth-footer{
  margin-top: 26px;
  text-align: center;
  font-size: 12px;
  color: rgba(0,0,0,.40);
  line-height: 1.6;
}

.auth-footer .legal{ margin-top: 6px; }

.auth-footer a{
  color: var(--purple);
  text-decoration: none;
  font-weight: 650;
}
.auth-footer a:hover{ text-decoration: underline; }

.auth-footer .dot{
  margin: 0 8px;
  color: rgba(0,0,0,.35);
}

/* RIGHT */
.auth-right{
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.hero-img{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
}

.hero-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(110,46,188,.65), rgba(110,46,188,.65));
}

/* =========================================================
   RESPONSIVE: 992 / 768 / 480
========================================================= */

/* <= 992px */
@media (max-width: 992px){
  .auth-shell{ grid-template-columns: 1fr; }
  .auth-right{ display: none; }

  .auth-left{ padding: 44px 18px; }
  .auth-card{ max-width: 520px; }
}

/* <= 768px */
@media (max-width: 768px){
  .auth-left{ padding: 36px 16px; }

  .auth-card{ max-width: 460px; }

  .brand-logo{
    width: 58px;
    height: 58px;
    margin-bottom: 8px;
  }

  .brand h1{ font-size: 34px; }

  .social-row{
    gap: 12px;
    margin: 18px 0 16px;
  }

  .social-btn{ height: 52px; }

  .divider{ margin: 2px 0 18px; }

  .field{ margin-bottom: 16px; }

  .input{ height: 46px; }

  .btn-primary{
    height: 54px;
    font-size: 15.5px;
  }

  .auth-footer{ margin-top: 22px; }
}

/* <= 480px */
@media (max-width: 480px){
  .auth-left{ padding: 28px 14px; }
  .auth-card{ max-width: 100%; }

  .brand h1{ font-size: 30px; }

  /* stack 3 social buttons as 2 + 1 */
  .social-row{
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .social-row .social-btn:last-child{
    grid-column: 1 / -1;
  }

  .social-btn{ height: 50px; }

  .label{ font-size: 12.5px; }

  .input{
    height: 44px;
    padding: 0 12px;
  }

  .eye-btn{
    right: 8px;
    width: 32px;
    height: 32px;
  }

  .btn-primary{ height: 52px; }

  .switch{ font-size: 12.5px; }

  .auth-footer{
    margin-top: 18px;
    font-size: 11.5px;
  }

  .auth-footer .dot{ margin: 0 6px; }
}