/* Beautiful Redesign - v2.4.0 */
:root {
  --brand-500: #8224E3;
  --brand-600: #7d1fde;
  --text-900: #1e293b;
  --text-700: #334155;
  --text-600: #475569;
  --text-500: #64748b;
  --bg-body: #f1f5f9;
  --bg-card: #ffffff;
  --bg-input: #f8fafc;
  --border: #e2e8f0;
  --ring: rgba(130, 36, 227, 0.25);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

.cls-container {
  font-family: var(--font-sans);
  color: var(--text-700);
  max-width: 450px;
  margin: 24px auto;
}

.cls-form-wrapper {
  background: var(--bg-card);
  padding: 32px;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

/* Header */
.cls-header {
  text-align: center;
  margin-bottom: 24px;
}
.cls-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-900);
  margin: 0;
}
.cls-subtitle {
  font-size: 16px;
  color: var(--text-600);
  margin-top: 8px;
}

/* Views */
.cls-view.is-hidden { display: none; }

/* Tabs */
.tabs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 24px;
}
.tab {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  color: var(--text-600);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: color .25s ease, background-color .25s ease;
}

.tab:not(.is-active):hover {
  background-color: var(--bg-card);
  color: var(--brand-500);
}

.tab.is-active,
.tab.is-active:hover {
  color: #ffffff !important;
  background-color: transparent;
}

.tab-indicator {
  position: absolute;
  z-index: 0;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  width: calc(50% - 4px);
  border-radius: 12px;
  background: var(--brand-500);
  box-shadow: 0 8px 20px rgba(130, 36, 227, 0.25);
  transition: transform .35s cubic-bezier(.4, .0, .2, 1);
}

/* Panels */
.tab-content { display: none; }
.tab-content.is-active { display: block; }

/* Messages */
.cls-messages {
  padding: 14px;
  margin-bottom: 16px;
  border-radius: 12px;
  font-size: 14px;
  display: none;
  text-align: center;
  border: 1px solid transparent;
}
.cls-messages.error { display: block; background-color: #fef2f2; color: #ef4444; border-color: #fecaca; }
.cls-messages.success { display: block; background-color: #f0fdf4; color: #22c55e; border-color: #bbf7d0; }
.cls-messages.info { display: block; background-color: #eff6ff; color: #3b82f6; border-color: #bfdbfe; }

/* Forms */
.cls-form { display: flex; flex-direction: column; gap: 18px; }
.cls-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-700);
  font-weight: 600;
  font-size: 14px;
}
.cls-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  background: var(--bg-input);
  color: var(--text-900);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.cls-field input::placeholder { color: var(--text-500); }
.cls-field input:focus {
  outline: 0;
  border-color: var(--brand-500);
  background-color: var(--bg-card);
  box-shadow: 0 0 0 4px var(--ring);
}
.cls-field-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Inline & Links */
.cls-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}
.cls-remember { display: flex; align-items: center; gap: 8px; color: var(--text-600); }
.cls-link {
  color: var(--brand-500);
  text-decoration: none;
  font-weight: 600;
}
.cls-link:hover { text-decoration: underline; color: var(--brand-600); }

/* Button */
.cls-button {
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: 14px;
  color: white;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  background-color: var(--brand-500);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
  margin-top: 10px;
}
.cls-button:hover {
  background-color: var(--brand-600);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(130, 36, 227, 0.2), 0 4px 6px -4px rgba(130, 36, 227, 0.2);
}
.cls-button:disabled { opacity: 0.7; cursor: wait; transform: translateY(0); }

.cls-footer-link { text-align: center; margin-top: 24px; }

/* Logged In Message */
.cls-logged-in-message {
  background: var(--bg-card);
  padding: 32px;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
  text-align: center;
}
