/* Panic System - Modern UI */
:root {
  --bg: #0f0f12;
  --bg-card: #1a1a1f;
  --bg-input: #222228;
  --border: #2d2d35;
  --text: #e4e4e7;
  --text-muted: #8a8a94;
  --accent: #ef4444;
  --accent-hover: #dc2626;
  --accent-soft: rgba(239, 68, 68, 0.15);
  --success: #22c55e;
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(239, 68, 68, 0.15), transparent);
}

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

.app-card {
  width: 100%;
  max-width: 640px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.app-logo {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.app-logo span {
  color: var(--accent);
}

.app-user {
  font-size: 12px;
  color: var(--text-muted);
}

.app-user a {
  color: var(--accent);
  text-decoration: none;
}

.app-user a:hover {
  text-decoration: underline;
}

.form-section {
  list-style: none;
  margin: 0;
  padding: 0;
}

.form-line {
  margin-bottom: 20px;
}

.form-input,
.form-input-wide {
  display: block !important;
  width: 100% !important;
}

.form-input input,
.form-input select,
.form-input textarea {
  width: 100% !important;
  max-width: 100% !important;
}

.form-label-left {
  display: block !important;
  float: none !important;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-textbox,
.form-dropdown,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-textbox:focus,
.form-dropdown:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-textbox::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-dropdown {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a8a94' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.form-buttons-wrapper {
  margin-top: 28px;
  margin-left: 0 !important;
}

.form-submit-button {
  width: 100%;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  color: white;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.form-submit-button:hover {
  background: var(--accent-hover);
}

.form-submit-button:active {
  transform: scale(0.98);
}

.form-submit-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-all {
  margin: 0;
  font-family: var(--font);
}

/* Login page */
.login-card {
  text-align: center;
  padding: 40px 32px;
}

.login-card h2 {
  margin: 0 0 24px;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.login-card h2 span {
  color: var(--accent);
}

.login-card .success {
  font-size: 14px;
  color: var(--success);
  margin-bottom: 20px;
  padding: 12px;
  background: rgba(34, 197, 94, 0.1);
  border-radius: var(--radius-sm);
}

.login-card .error {
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 20px;
  padding: 12px;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  line-height: 1.5;
}

.login-card .form-submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  text-decoration: none;
  color: white !important;
}

.login-card .form-submit-button:hover {
  background: var(--accent-hover);
}

.form-submit-button:visited {
  color: white;
}
