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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: linear-gradient(180deg, #000000 0%, #1a1a2e 50%, #16213e 100%);
  background-image: url('banner-150.png'), linear-gradient(180deg, #000000 0%, #1a1a2e 50%, #16213e 100%);
  background-position: top left, center;
  background-repeat: no-repeat, no-repeat;
  background-size: auto, cover;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.container {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 420px;
  width: 100%;
  overflow: hidden;
  margin-bottom: 24px;
}

header {
  background: #0866ff;
  color: white;
  padding: 32px 24px;
  text-align: center;
}

header h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

header .tagline {
  font-size: 16px;
  opacity: 0.9;
}

main {
  padding: 24px;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.tab {
  flex: 1;
  padding: 12px;
  border: none;
  background: #f0f2f5;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
}

.tab:hover {
  background: #e4e6eb;
}

.tab.active {
  background: #0866ff;
  color: white;
}

.form {
  display: none;
}

.form.active {
  display: block;
}

.form-info {
  color: #666;
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e4e6eb;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s;
}

.field input:focus {
  outline: none;
  border-color: #0866ff;
}

.field input::placeholder {
  color: #999;
}

.btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn.primary {
  background: #0866ff;
  color: white;
}

.btn.primary:hover {
  background: #0756d4;
}

.btn.primary:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.message {
  margin-top: 20px;
  padding: 14px;
  border-radius: 8px;
  font-size: 14px;
  display: none;
}

.message.show {
  display: block;
}

.message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.message.info {
  background: #e7f3ff;
  color: #0c5aa6;
  border: 1px solid #b8daff;
}

/* Card footer (inside container) */
.card-footer {
  padding: 20px 24px;
  background: #f8f9fa;
  border-top: 1px solid #e4e6eb;
}

.card-footer p {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  text-align: center;
}

.card-footer p.small {
  margin-top: 8px;
  font-size: 12px;
  color: #999;
}

/* Site footer (outside container) */
.site-footer {
  margin-top: auto;
  padding: 20px;
  text-align: center;
  width: 100%;
}

.site-footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer .footer-links a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.site-footer .footer-links a:hover {
  color: white;
  text-decoration: underline;
}

.site-footer .copyright {
  margin-top: 12px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}

/* Loading spinner */
.btn.loading {
  position: relative;
  color: transparent;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin: -10px 0 0 -10px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Responsive */
@media (max-width: 480px) {
  body {
    padding: 0;
    align-items: flex-start;
  }

  .container {
    border-radius: 0;
    min-height: 100vh;
  }
}
