:root {
  --color-primary: #dfb843;
  --color-accent: #D3D4D4;
  --color-bg: #f5f7fb;
  --color-text: #222;
  --color-error: #e53935;
  --radius: 12px;
  --transition: 0.2s ease;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 24px;
}

.auth-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  animation: fadeIn 0.4s ease-out;
}

.logo {
  display: block;
  margin: 0 auto 24px;
  width: 64px;
}

h1 {
  font-size: 1.8em;
  margin-bottom: 24px;
  text-align: center;
}

form input[type="email"],
form input[type="text"] {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  transition: border var(--transition);
}

form input[type="email"]:focus,
form input[type="text"]:focus {
  border-color: var(--color-primary);
  outline: none;
}

button {
  width: 100%;
  padding: 12px;
  background: var(--color-primary);
  border: none;
  color: #fff;
  border-radius: var(--radius);
  font-size: 16px;
  cursor: pointer;
  transition: background var(--transition);
}

button:hover {
  background: var(--color-accent);
}

.divider {
  text-align: center;
  margin: 24px 0;
  color: #999;
  position: relative;
}

.divider span {
  background: #fff;
  padding: 0 10px;
  position: relative;
  z-index: 1;
}

.divider::before {
  content: "";
  position: absolute;
  height: 1px;
  width: 100%;
  background: #ddd;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.social-logins {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
  color: #fff;
}

.social-btn.google {
  background-color: #db4437;
}

.social-btn.google:hover {
  background-color: #c1352b;
}

.social-btn.apple {
  background-color: #000;
  color: #fff;
}

.social-btn.apple:hover {
  background-color: #222;
}

.social-btn svg {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  vertical-align: middle;
}

.checkbox {
  font-size: 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.bottom-link {
  margin-top: 24px;
  text-align: center;
  font-size: 14px;
}

.error-box {
  background: #ffeaea;
  border: 1px solid var(--color-error);
  color: var(--color-error);
  padding: 12px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

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


.lang-switcher {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
}

.lang-switcher a {
  font-size: 14px;
  text-decoration: none;
  color: #666;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.lang-switcher a:hover {
  background: #eee;
}

.lang-switcher a.active {
  border-color: #999;
  font-weight: bold;
}

.code-input-group input {
  width: 42px;
  height: 52px;
  text-align: center;
  font-size: 24px;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin: 0 6px;
  transition: all 0.15s ease;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.code-input-group input.filled {
  border-color: #3FA39B;
  background: #e7f7f6;
}

.code-input-group input.animated {
  transform: scale(1.1);
  animation: popIn 0.15s ease;
}

@keyframes popIn {
  0% { transform: scale(1); }
  50% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

.code-input-group {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}



.page-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.logo {
  height: 32px;
}

.language-switcher a {
  margin-left: 10px;
  text-decoration: none;
  font-weight: bold;
  color: #555;
}

.language-switcher a.active {
  color: var(--color-primary);
}

.profile-nav {
  display: flex;
  justify-content: space-around;
  margin-bottom: 24px;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}

.profile-nav a {
  color: #444;
  text-decoration: none;
  font-weight: 500;
}

.profile-nav a.active {
  color: var(--color-primary);
}

.profile-box {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #f6f6f6;
  padding: 16px;
  border-radius: 12px;
}

.profile-picture {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-placeholder {
  width: 72px;
  height: 72px;
  background: #ddd;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  border-radius: 50%;
}

.profile-info p {
  margin: 4px 0;
  font-size: 15px;
}

.vlips-section h2 {
  margin: 32px 0 16px;
}

.vlip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.vlip-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vlip-title {
  font-weight: bold;
}

.vlip-hash, .vlip-date {
  font-size: 13px;
  color: #666;
}

.vlip-link {
  margin-top: auto;
  color: var(--color-primary);
  font-weight: 500;
  text-decoration: none;
}

.no-vlips {
  color: #888;
  font-size: 14px;
  margin-top: 12px;
}











/* App-Look wie Polarsteps */
.app-bg {
  background: linear-gradient(160deg, #dfb843 0%, #f5f7fb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  font-family: 'Outfit', 'Segoe UI', sans-serif;
}

.app-container {
  width: 100%;
  max-width: 420px;
  padding: 20px;
}

.app-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  text-align: center;
  animation: fadeIn 0.4s ease-out;
}

.app-logo {
  width: 72px;
  margin-bottom: 16px;
}

.app-title {
  font-size: 1.8em;
  margin-bottom: 8px;
  color: #111;
}

.app-subtitle {
  font-size: 0.95em;
  color: #666;
  margin-bottom: 24px;
}

.app-form input[type="email"] {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 12px;
  margin-bottom: 16px;
  transition: border var(--transition), box-shadow var(--transition);
}

.app-form input[type="email"]:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(223,184,67,0.25);
  outline: none;
}

.btn-primary {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background var(--transition), transform 0.1s ease;
}

.btn-primary:hover {
  background: #caa22f;
  transform: translateY(-2px);
}

/* Social Buttons */
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  border: none;
  transition: transform 0.1s ease, background 0.2s ease;
  color: #fff;
}

.social-btn .icon {
  margin-right: 8px;
  font-size: 18px;
}

.social-btn.google { background: #db4437; }
.social-btn.google:hover { background: #c1352b; }
.social-btn.apple { background: #000; }
.social-btn.apple:hover { background: #222; }

.social-btn:hover {
  transform: translateY(-2px);
}

/* Bottom link */
.bottom-link {
  margin-top: 20px;
  font-size: 14px;
  color: #666;
}

/* Divider */
.divider {
  text-align: center;
  margin: 24px 0;
  color: #aaa;
  position: relative;
}
.divider span {
  background: #fff;
  padding: 0 10px;
  z-index: 1;
  position: relative;
}
.divider::before {
  content: "";
  position: absolute;
  height: 1px;
  width: 100%;
  background: #ddd;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}


/* App-Dark Shell + Header/Sidebar */
.app-dark { background: radial-gradient(1200px 800px at 80% -10%, #1b2233 0%, #0f1218 60%); color:#e6e9ef; }
.app-header {
  position: sticky; top:0; z-index:50;
  display:grid; grid-template-columns:40px 1fr 40px; align-items:center; gap:12px;
  padding:14px 16px; backdrop-filter:saturate(150%) blur(10px);
  background:rgba(13,16,24,.7); border-bottom:1px solid rgba(255,255,255,.05);
}
.app-header .logo { height:28px; filter:drop-shadow(0 2px 10px rgba(110,168,254,.2)); }
.app-title { text-align:center; font-weight:600; opacity:.9; }

.burger { width:24px; height:24px; border:0; background:transparent; position:relative; cursor:pointer; }
.burger span, .burger span::before, .burger span::after { position:absolute; left:0; width:18px; height:2px; background:#e6e9ef; border-radius:2px; content:""; transition:transform .35s ease, opacity .25s ease, top .35s ease; }
.burger span{top:0;} .burger span::before{top:-6px;} .burger span::after{top:6px;}
.burger.open span{background:transparent;} .burger.open span::before{top:0; transform:rotate(45deg);} .burger.open span::after{top:0; transform:rotate(-45deg);}

.overlay{position:fixed; inset:0; background:rgba(0,0,0,.45); opacity:0; visibility:hidden; transition:opacity .3s ease,visibility .3s ease; z-index:40;}
.overlay.show{opacity:1; visibility:visible;}

.sidebar{
  position:fixed; top:0; right:0; width:min(86vw,360px); height:100dvh; padding:18px 16px;
  background:linear-gradient(180deg,#111624, #0b0f1a); border-left:1px solid rgba(255,255,255,.06);
  box-shadow:0 10px 30px rgba(0,0,0,.5); transform:translateX(100%); transition:transform .3s ease; z-index:45; overflow:auto;
}
.sidebar.show{ transform:translateX(0); }
.sidebar .user-row{display:flex; align-items:center; gap:12px; margin-bottom:16px;}
.sidebar .avatar{width:48px; height:48px; border-radius:50%; object-fit:cover;}
.sidebar .name{font-weight:600;}
.sidebar .mail{font-size:13px; opacity:.75;}
.side-nav{display:grid; gap:8px; margin-top:8px;}
.side-nav a{display:block; padding:12px 10px; border-radius:12px; color:#e6e9ef; text-decoration:none; border:1px solid rgba(255,255,255,.06); background:rgba(255,255,255,.02);}
.side-nav a.active{border-color:#6ea8fe; box-shadow:0 0 0 3px rgba(110,168,254,.15) inset; color:#6ea8fe;}

/* Inputs mit Icon */
.input.with-icon{ position:relative; }
.input.with-icon .icon{ position:absolute; left:12px; top:50%; transform:translateY(-50%); width:18px; height:18px; opacity:.6; }
.input.with-icon input{ padding-left:42px; }
.icon.mail{ -webkit-mask:url('/assets/icons/mail.svg') no-repeat center; mask:url('/assets/icons/mail.svg') no-repeat center; background:#666; }

/* VT scope: sanfte Übergänge */
.vt-scope [data-vt-enter] { view-transition-name: page; }


/* Helles App-Layout */
.light-app {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: 'Outfit', 'Segoe UI', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 50;
}
.app-header .logo { height: 28px; }

/* Profile Box */
.profile-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  padding: 16px;
  border-radius: var(--radius);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  margin-bottom: 20px;
}
.profile-picture, .profile-fallback {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}
.profile-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: #fff;
  font-size: 28px;
  font-weight: bold;
}

/* Profile Nav */
.profile-nav {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}
.profile-nav a {
  color: #444;
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.profile-nav a.active {
  color: var(--color-primary);
}

/* Vlip Cards */
.vlip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(220px,1fr));
  gap: 16px;
}
.vlip-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vlip-card .vlip-title { font-weight: 600; }
.vlip-card .vlip-date {
  font-size: 13px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 4px;
}
.vlip-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--color-primary);
  font-weight: 500;
}

/* Bottom Navigation */
.bottom-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 0;
  background: #fff;
  border-top: 1px solid #eee;
  position: sticky;
  bottom: 0;
}
.bottom-nav a {
  flex: 1;
  text-align: center;
  padding: 6px 0;
  color: #555;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bottom-nav a.active {
  color: var(--color-primary);
}
