@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --pink:       #FF40A0;
  --pink-light: #FFB7E6;
  --yellow:     #F0FE72;
  --teal:       #60A3A6;
  --bg:         #0A0E27;
  --surface:    #1A203A;
  --border:     rgba(255, 255, 255, 0.08);
  --text-white: #FFFFFC;
  --text-muted: #BDC2C9;
  --text-body:  #C8D0E7;
  --font:       'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-white);
  min-height: 100vh;
  display: block;
}

a { text-decoration: none; color: inherit; }
button, input { font: inherit; }

/* ── LAYOUT ── */
.login-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* ── LEFT PANEL ── */
.left-panel {
  background: #080b1f;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
}

.left-panel::before {
  content: '';
  position: absolute;
  top: 10%; left: 5%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(96,163,166,0.1), transparent 70%);
  pointer-events: none;
}

.left-content {
  position: relative;
  z-index: 1;
  max-width: 400px;
  width: 100%;
}

.left-content h1 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--text-white);
}

.gradient {
  background: linear-gradient(90deg, var(--pink), var(--pink-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.left-content p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-body);
}

.feature-list li i {
  color: var(--pink);
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 2px;
}


/* ── RIGHT PANEL ── */
.right-panel {
  background: #080b1f;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
}

/* ── FORM CARD ── */
.form-card {
  width: 100%;
  max-width: 420px;
  background: #111827;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.06);
  padding: 32px;
}

.form-card h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text-white);
}

.subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ── FORM FIELDS ── */
.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-body);
  margin-bottom: 8px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
}

.form-input {
  width: 100%;
  background: #0d1117;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 13px 18px 13px 40px;
  font-size: 14px;
  color: var(--text-white);
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input.error {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255,64,160,0.2);
}

.form-input::placeholder { color: var(--text-muted); }

.form-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(96,163,166,0.15);
}

.btn-toggle-pw {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 0;
  transition: color 0.2s;
}
.btn-toggle-pw:hover { color: var(--text-white); }

/* ── FORM OPTIONS ── */
.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
}

.checkbox-wrap input { accent-color: var(--pink); }

.forgot-link {
  color: var(--pink);
  font-size: 13px;
  font-weight: 600;
}

/* ── MESSAGES ── */
.form-message {
  font-size: 12px;
  margin-bottom: 10px;
  min-height: 14px;
  display: block;
}

.alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}

.alert-error   { background: rgba(255,64,160,0.1);  color: var(--pink);  border: 1px solid rgba(255,64,160,0.2); }
.alert-success { background: rgba(96,163,166,0.1);  color: var(--teal);  border: 1px solid rgba(96,163,166,0.2); }

/* ── BUTTON ── */
.btn-create {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, var(--pink), var(--pink-light));
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 14px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  margin-bottom: 16px;
  transition: opacity 0.2s, transform 0.15s;
}
.btn-create:hover { opacity: 0.9; transform: translateY(-1px); }

/* ── SIGN UP LINK ── */
.signin-row {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.signin-row a {
  color: var(--pink);
  font-weight: 700;
}

/* ── DIVIDER ── */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 12px;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.08);
}

/* ── SOCIAL BUTTONS ── */
.social-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #0d1117;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-white);
  font-family: var(--font);
  cursor: pointer;
  transition: border-color 0.2s;
}
.btn-social:hover { border-color: var(--text-muted); }


/* ── AUTOFILL FIX ── */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #0d1117 inset !important;
  -webkit-text-fill-color: var(--text-white) !important;
  caret-color: var(--text-white);
  transition: background-color 5000s ease-in-out 0s;
}
.admin-access-row {
  text-align: center;
  margin-top: 26px;
  font-size: 13px;
  color: var(--text-muted);
}

.admin-access-row a {
  color: var(--teal);
  font-weight: 700;
  text-decoration: none;
}

.admin-access-row a:hover {
  color: var(--text-white);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .login-layout { grid-template-columns: 1fr; }
  .left-panel   { display: none; }
  .right-panel  { padding: 40px 20px; min-height: 100vh; }
  .form-card    { padding: 24px 20px; }
  .social-row {
  grid-template-columns: 1fr;
}
}
