:root {
  --brand-color: #8576FF;
  --brand-gradient: linear-gradient(135deg, #8576FF, #6a5ef5);
  --text-dark: #222;
  --text-light: #fff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Jost', sans-serif;
}

body {
  background: var(--brand-gradient);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(133, 118, 255, 0.9);
  color: white;
  display: flex;
  justify-content: space-between;
  padding: 12px 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  z-index: 1002;
  backdrop-filter: blur(10px);
}

#brand {
  display: flex;
  align-items: center;
}

#brand-logo {
  height: 28px;
  margin-right: 10px;
}

#brand-name {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.flash-message {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  background: #6a5ef5;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 1003;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideDown 0.4s ease;
}

.flash-message.hidden { display: none; }

@keyframes slideDown {
  from { transform: translate(-50%, -40px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

#close-flash {
  background: none;
  border: none;
  font-size: 20px;
  color: white;
  cursor: pointer;
}

.main {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 30px 20px;
  color: var(--text-light);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  margin-top: 60px;
}

/* Tabs */
.tabs {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.3);
}

.tab {
  flex: 1;
  text-align: center;
  padding: 10px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  transition: all 0.3s ease;
}

.tab.active {
  color: #fff;
  border-bottom: 3px solid #fff;
}

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input {
  padding: 12px 14px;
  border: none;
  border-radius: 8px;
  outline: none;
  font-size: 14px;
  color: #333;
}

button {
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  background: var(--brand-gradient);
  color: white;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
}

.divider hr {
  flex: 1;
  border: none;
  border-top: 1px solid rgba(255,255,255,0.3);
}

.divider span {
  padding: 0 10px;
  color: rgba(255,255,255,0.8);
}

.terms {
  font-size: 13px;
  text-align: center;
  margin-top: 5px;
  color: rgba(255,255,255,0.9);
}

.terms a {
  color: #fff;
  text-decoration: underline;
  font-weight: 500;
}

.no-decor button {
  width: 100%;
  margin-top: 5px;
  background: #fff;
  color: var(--brand-color);
  font-weight: 600;
}

.no-decor button:hover {
  background: #f0f0ff;
}