/*
  SRTCaster web pages — red theme matching the Android app's Go Live button.
  Single stylesheet shared by index.html, reset.html, reset-success.html,
  and reset-error.html.
*/

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  color: #111827;
  background: #f3f4f6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.card {
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08),
              0 1px 3px rgba(0, 0, 0, 0.04);
}

.card__header {
  background: linear-gradient(135deg, #E53935 0%, #B71C1C 100%);
  padding: 28px;
  color: #ffffff;
  text-align: center;
}

.card__logo {
  height: 40px;
  margin-bottom: 12px;
}

.card__brand {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.card__subtitle {
  font-size: 13px;
  opacity: 0.9;
  margin-top: 4px;
}

.card__body {
  padding: 32px 28px;
}

h1 {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}

p {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 16px;
}

p.muted {
  color: #6b7280;
  font-size: 13px;
}

p.highlight {
  color: #111827;
  font-weight: 600;
  background: #fef2f2;
  border-left: 3px solid #E53935;
  padding: 10px 14px;
  border-radius: 4px;
  margin: 16px 0;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
  margin-top: 16px;
}

input[type="password"],
input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
  color: #111827;
}

input[type="password"]:focus,
input[type="text"]:focus {
  outline: none;
  border-color: #E53935;
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

.btn {
  display: inline-block;
  width: 100%;
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 28px;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.1s, box-shadow 0.2s;
  margin-top: 20px;
}

.btn--primary {
  background: linear-gradient(135deg, #FF1744 0%, #E53935 50%, #B71C1C 100%);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(229, 57, 53, 0.3);
}

.btn--primary:hover {
  box-shadow: 0 4px 12px rgba(229, 57, 53, 0.4);
  transform: translateY(-1px);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(229, 57, 53, 0.3);
}

.btn--primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn--secondary {
  background: #f3f4f6;
  color: #374151;
}

.card__footer {
  background: #f9fafb;
  padding: 14px 28px;
  border-top: 1px solid #e5e7eb;
  text-align: center;
  font-size: 12px;
  color: #9ca3af;
}

/* Status messages */
.status {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-top: 12px;
  display: none;
}

.status--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  display: block;
}

.status--success {
  background: #f0fdf4;
  color: #14532d;
  border: 1px solid #bbf7d0;
  display: block;
}

.status--loading {
  background: #eff6ff;
  color: #1e3a8a;
  border: 1px solid #bfdbfe;
  display: block;
}

.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid #bfdbfe;
  border-top-color: #1e3a8a;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Success state icon */
.success-icon {
  width: 64px;
  height: 64px;
  background: #dcfce7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: #16a34a;
  font-size: 32px;
  font-weight: 700;
}

.error-icon {
  width: 64px;
  height: 64px;
  background: #fef2f2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: #991b1b;
  font-size: 32px;
  font-weight: 700;
}

.centered {
  text-align: center;
}

.password-requirements {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
  line-height: 1.5;
}

/* Tiny mobile tweaks */
@media (max-width: 480px) {
  .card__body { padding: 24px 20px; }
  .card__header { padding: 22px; }
  h1 { font-size: 20px; }
}
