@import url('brand.css');

.desktop-app .main-content {
  border-radius: 0;
}
html.desktop-app {
  -webkit-app-region: no-drag;
}

:root {
  --bg-primary: #313338;
  --bg-secondary: #2b2d31;
  --bg-tertiary: #1e1f22;
  --bg-accent: #383a40;
  --text-primary: #f2f3f5;
  --text-muted: #949ba4;
  --brand: #5865f2;
  --brand-hover: #4752c4;
  --green: #23a559;
  --red: #da373c;
  --input-bg: #1e1f22;
  --border: #3f4147;
  --radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  min-height: 100vh;
}

.auth-container {
  display: flex;
  min-height: 100vh;
  align-items: stretch;
}

.auth-card {
  flex: 1;
  max-width: 480px;
  padding: 48px 40px;
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-side {
  flex: 1;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: #0a0a12;
}

.auth-side-hero {
  padding: 0;
  display: block;
}

.auth-hero-img {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  object-fit: cover;
  object-position: center;
  display: block;
}

.auth-side-content h2 {
  font-size: 2rem;
  margin-bottom: 24px;
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.auth-side-content ul { list-style: none; }
.auth-side-content li {
  padding: 10px 0;
  font-size: 1.05rem;
  opacity: 0.95;
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-side-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  opacity: 0.92;
  max-width: 420px;
}

.logo { text-align: center; margin-bottom: 32px; }
.subtitle { color: var(--text-muted); margin-top: 8px; font-size: 0.95rem; }

.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; margin-bottom: 6px; font-size: 0.85rem;
  font-weight: 600; color: var(--text-muted); text-transform: uppercase;
}
.form-group input {
  width: 100%; padding: 12px; background: var(--input-bg);
  border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text-primary); font-size: 1rem;
}
.form-group input:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.25);
}
.form-group small { color: var(--text-muted); font-size: 0.75rem; }

.btn-primary {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, var(--brand), #7c3aed);
  color: white; border: none; border-radius: var(--radius);
  font-size: 1rem; font-weight: 600; cursor: pointer; margin-top: 8px;
  box-shadow: 0 4px 20px rgba(88, 101, 242, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(88, 101, 242, 0.45);
}
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.error-msg { background: rgba(218,55,60,0.15); color: #f3868a; padding: 10px; border-radius: var(--radius); margin: 8px 0; font-size: 0.9rem; }
.success-msg { background: rgba(35,165,89,0.15); color: #57f287; padding: 10px; border-radius: var(--radius); margin: 8px 0; font-size: 0.9rem; }
.hidden { display: none !important; }

.auth-footer { text-align: center; margin-top: 20px; color: var(--text-muted); }
.auth-footer a { color: #a5b4fc; text-decoration: none; font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }
.auth-footer.small { font-size: 0.85rem; margin-top: 8px; }

@media (max-width: 768px) {
  .auth-side { display: none; }
  .auth-card { max-width: 100%; }
}
