/* ============================================================
   ViaaMeetApp – Auth Pages (Login / Register)
   Premium glassmorphism design
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:    #6C63FF;
  --secondary:  #3EC6F7;
  --accent:     #FF6B9D;
  --surface:    rgba(255,255,255,0.08);
  --surface-hv: rgba(255,255,255,0.14);
  --border:     rgba(255,255,255,0.15);
  --text:       #FFFFFF;
  --text-muted: rgba(255,255,255,0.6);
  --error-bg:   rgba(255,80,80,0.18);
  --success-bg: rgba(56,210,145,0.18);
  --radius:     16px;
  --shadow:     0 24px 64px rgba(0,0,0,0.4);
  --font:       'Inter', system-ui, sans-serif;
}

body { font-family: var(--font); min-height: 100vh; overflow: hidden; }

/* ── Animated gradient background ── */
.auth-bg {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  animation: bgShift 12s ease infinite alternate;
  position: relative;
  overflow: hidden;
}

@keyframes bgShift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* ── Floating particles canvas ── */
.auth-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

/* ── Glass Card ── */
.auth-card {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 440px;
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 24px;
  padding: 40px 36px;
  box-shadow: var(--shadow);
  animation: cardIn .5s cubic-bezier(.22,1,.36,1) forwards;
  transform: translateY(20px);
  opacity: 0;
}

@keyframes cardIn {
  to { transform: translateY(0); opacity: 1; }
}

/* ── Logo ── */
.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}

.logo-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  filter: drop-shadow(0 0 20px rgba(108,99,255,0.6));
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%,100% { filter: drop-shadow(0 0 16px rgba(108,99,255,0.5)); transform: scale(1); }
  50%      { filter: drop-shadow(0 0 28px rgba(62,198,247,0.7)); transform: scale(1.05); }
}

.auth-logo h1 {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, #b3adff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.auth-logo p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 400;
}

/* ── Alerts ── */
.alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  margin-bottom: 20px;
  font-weight: 500;
}
.alert a { color: #7BFFD6; }
.alert-error   { background: var(--error-bg);   border: 1px solid rgba(255,100,100,.35); color: #ffaaaa; }
.alert-success { background: var(--success-bg); border: 1px solid rgba(56,210,145,.35); color: #9effd8; }

/* ── Form ── */
.auth-form { display: flex; flex-direction: column; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: .4px;
  text-transform: uppercase;
}

.form-group .req { color: #FF6B9D; }

.form-group input {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text);
  font-size: 14.5px;
  font-family: var(--font);
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
  width: 100%;
}

.form-group input::placeholder { color: rgba(255,255,255,.3); }
.form-group input:focus {
  border-color: var(--primary);
  background: rgba(108,99,255,0.1);
  box-shadow: 0 0 0 3px rgba(108,99,255,0.2);
}

/* Password toggle */
.password-group { position: relative; }
.password-group input { padding-right: 44px; }
.toggle-pwd {
  position: absolute;
  right: 12px;
  top: 34px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  transition: color .2s;
}
.toggle-pwd:hover { color: var(--text); }

/* ── Primary Button ── */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  margin-top: 6px;
  letter-spacing: .3px;
  box-shadow: 0 8px 24px rgba(108,99,255,0.4);
  transition: transform .15s, box-shadow .15s, filter .15s;
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background .2s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(108,99,255,0.55);
  filter: brightness(1.08);
}
.btn-primary:hover::after { background: rgba(255,255,255,0.06); }
.btn-primary:active { transform: translateY(0); }

/* ── Auth link ── */
.auth-link {
  text-align: center;
  margin-top: 24px;
  font-size: 13.5px;
  color: var(--text-muted);
}
.auth-link a {
  color: var(--secondary);
  font-weight: 600;
  text-decoration: none;
  transition: color .2s;
}
.auth-link a:hover { color: #fff; text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 480px) {
  .auth-card { padding: 32px 22px; }
}
