/* Auth pages — dark theme matching workspace app */

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

body {
  background: #1a1a1a;
  color: #dedede;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-wrapper {
  width: 100%;
  max-width: 420px;
  padding: 20px;
}

/* Logo */
.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  text-decoration: none;
}

.auth-logo img {
  width: 48px;
  height: 48px;
  padding: 4px;
  border-radius: 8px;
}

.auth-logo span {
  font-family: Menlo, Monaco, 'Courier New', monospace;
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  margin-top: 10px;
  margin-left: -13px;
}

/* Card */
.auth-card {
  background: #252525;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 32px;
}

.auth-card h1 {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 24px;
}

.auth-card h2 {
  font-size: 16px;
  font-weight: 600;
  color: #dedede;
  margin-bottom: 16px;
}

/* Form fields */
.auth-field {
  margin-bottom: 20px;
}

.auth-field label {
  display: block;
  font-size: 13px;
  color: #aaa;
  margin-bottom: 6px;
}

.auth-field input[type="email"],
.auth-field input[type="password"],
.auth-field input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  background: #1a1a1a;
  border: 1px solid #444;
  border-radius: 6px;
  color: #dedede;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.auth-field input:focus {
  border-color: #3b79c3;
  box-shadow: 0 0 0 2px rgba(59, 121, 195, 0.2);
}

.auth-hint {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

/* Buttons */
.auth-actions {
  margin-top: 24px;
}

.auth-btn {
  width: 100%;
  padding: 10px 16px;
  background: #004cff;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.auth-btn:hover {
  background: #0040d0;
}

.auth-btn-secondary {
  background: #2a2a2a;
  border: 1px solid #444;
  color: #aaa;
}

.auth-btn-secondary:hover {
  background: #333;
  color: #dedede;
}

.auth-btn-danger {
  background: transparent;
  border: 1px solid #444;
  color: #e53935;
}

.auth-btn-danger:hover {
  background: rgba(229, 57, 53, 0.1);
  border-color: #e53935;
}

/* Links */
.auth-links {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
}

.auth-links a {
  color: #3b79c3;
  text-decoration: none;
}

.auth-links a:hover {
  color: #5a9ad8;
  text-decoration: underline;
}

.auth-links .separator {
  color: #444;
  margin: 0 8px;
}

/* Flash messages */
.auth-notice {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 20px;
}

.auth-notice-success {
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.3);
  color: #4caf50;
}

.auth-notice-error {
  background: rgba(229, 57, 53, 0.1);
  border: 1px solid rgba(229, 57, 53, 0.3);
  color: #e53935;
}

/* Error list */
.auth-errors {
  background: rgba(229, 57, 53, 0.06);
  border: 1px solid rgba(229, 57, 53, 0.25);
  border-radius: 6px;
  padding: 14px 18px;
  margin-bottom: 20px;
}

.auth-errors h2 {
  font-size: 13px;
  font-weight: 500;
  color: #e53935;
  margin-bottom: 8px;
}

.auth-errors ul {
  margin: 0;
  padding-left: 18px;
}

.auth-errors li {
  font-size: 13px;
  color: #e53935;
  margin-bottom: 2px;
}

/* Account dashboard */
.auth-section {
  margin-bottom: 24px;
}

.auth-section h2 {
  font-size: 14px;
  font-weight: 600;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #333;
}

.auth-section-item {
  display: block;
  padding: 10px 0;
  color: #3b79c3;
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid #2a2a2a;
}

.auth-section-item:hover {
  color: #5a9ad8;
}

.auth-email {
  font-size: 14px;
  color: #aaa;
  margin-bottom: 24px;
}

/* Sessions/Devices list */
.auth-session {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 12px;
}

.auth-session p {
  font-size: 13px;
  color: #aaa;
  margin-bottom: 6px;
}

.auth-session strong {
  color: #dedede;
}

.auth-session form {
  margin-top: 10px;
}

/* Verification notice */
.auth-info {
  background: rgba(59, 121, 195, 0.1);
  border: 1px solid rgba(59, 121, 195, 0.3);
  border-radius: 6px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #5a9ad8;
}

.auth-info form {
  margin-top: 10px;
}

/* Back link */
.auth-back {
  margin-top: 20px;
  text-align: center;
}

.auth-back a {
  font-size: 13px;
  color: #666;
  text-decoration: none;
}

.auth-back a:hover {
  color: #aaa;
}

/* Inline form buttons (logout, re-send etc) */
.auth-session .auth-btn,
.auth-info .auth-btn,
.auth-actions .auth-btn-danger {
  display: inline-block;
  width: auto;
}

/* Coming soon */
.auth-coming-soon {
  text-align: center;
  padding: 32px 16px;
}

.auth-coming-soon-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(59, 121, 195, 0.1);
  border: 1px solid rgba(59, 121, 195, 0.25);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: #5a9ad8;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.auth-coming-soon p {
  color: #888;
  font-size: 14px;
  line-height: 1.6;
}
