/*
 * Login, registration and project selection pages (CodedRadar look):
 * a light grey page with a white card, CodedRadar red for actions.
 */
:root {
  --tv-red: #c8102e;
  --tv-red-dark: #9e0c24;
  --tv-text: #222;
  --tv-muted: #666;
  --tv-border: #d4d4d4;
  --tv-card: #fff;
}

body {
  background: linear-gradient(160deg, #f4f4f4 0%, #d9d9d9 60%, #c9b5b5 100%);
  background-attachment: fixed;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: block;
  color: var(--tv-text);
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* --- login ------------------------------------------------------------------ */

.tv-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.tv-card {
  background: var(--tv-card);
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  padding: 32px 32px 24px;
  width: 100%;
  max-width: 360px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tv-logo {
  height: 48px;
  align-self: center;
  object-fit: contain;
}

.tv-card h1 {
  font-size: 22px;
  font-weight: 600;
  margin: 4px 0 0;
  text-align: center;
}

.tv-subtitle {
  margin: 0 0 6px;
  text-align: center;
  color: var(--tv-muted);
  font-size: 14px;
}

.tv-card label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--tv-muted);
}

.tv-card input,
.tv-search {
  font: inherit;
  font-size: 15px;
  color: var(--tv-text);
  padding: 9px 10px;
  border: 1px solid var(--tv-border);
  border-radius: 5px;
  box-sizing: border-box;
  width: 100%;
}

.tv-card input:focus,
.tv-search:focus {
  outline: none;
  border-color: var(--tv-red);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.15);
}

.tv-button {
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--tv-red);
  border: none;
  border-radius: 5px;
  padding: 10px 16px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.tv-button:hover { background: var(--tv-red-dark); }
.tv-button:disabled { opacity: 0.6; cursor: default; }

.tv-button-plain {
  color: var(--tv-text);
  background: #eee;
}

.tv-button-plain:hover { background: #ddd; }

.tv-message {
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 5px;
  background: #fdecee;
  color: var(--tv-red-dark);
  border: 1px solid #f3c2c9;
}

.tv-message-info {
  background: #eef5ee;
  color: #2d5f2d;
  border-color: #c5ddc5;
}

.tv-footer {
  margin: 4px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--tv-muted);
}

.tv-footer a,
.tv-link { color: var(--tv-red); }
