/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Auth pages */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

.auth-logo {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #f5c518 0%, #f0a000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.auth-tagline {
  color: #999;
  font-size: 14px;
  margin-bottom: 32px;
}

.auth-card {
  width: 100%;
  max-width: 380px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  padding: 32px 28px;
}

.auth-card h1 {
  font-size: 22px;
  font-weight: 700;
  color: #e8e8e8;
  margin-bottom: 24px;
  text-align: center;
}

.auth-flash {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}

.auth-flash--alert {
  background: rgba(231, 76, 60, 0.12);
  border: 1px solid rgba(231, 76, 60, 0.3);
  color: #e74c3c;
}

.auth-flash--notice {
  background: rgba(46, 204, 113, 0.12);
  border: 1px solid rgba(46, 204, 113, 0.3);
  color: #2ecc71;
}

.auth-errors {
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(231, 76, 60, 0.12);
  border: 1px solid rgba(231, 76, 60, 0.3);
  color: #e74c3c;
  font-size: 13px;
  margin-bottom: 16px;
}

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

.auth-errors li {
  margin-bottom: 4px;
}

.auth-errors li:last-child {
  margin-bottom: 0;
}

.auth-field {
  margin-bottom: 18px;
}

.auth-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.auth-field input {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  background: #0f0f0f;
  color: #e8e8e8;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-field input:focus {
  outline: none;
  border-color: #f5c518;
  box-shadow: 0 0 16px rgba(245, 197, 24, 0.15);
}

.auth-field input::placeholder {
  color: #555;
}

.auth-submit {
  display: block;
  width: 100%;
  padding: 14px;
  margin-top: 24px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #f5c518 0%, #e6a800 100%);
  color: #0f0f0f;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(245, 197, 24, 0.25);
}

.auth-submit:hover {
  background: linear-gradient(135deg, #ffd84d 0%, #f5c518 100%);
  box-shadow: 0 6px 24px rgba(245, 197, 24, 0.35);
  transform: translateY(-1px);
}

.auth-submit:active {
  transform: translateY(0);
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: #666;
}

.auth-footer a {
  color: #f5c518;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.auth-footer a:hover {
  opacity: 0.8;
}

/* ========================================
   Landing page
   ======================================== */

.landing {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px;
}

.landing-flash {
  text-align: center;
  padding: 12px 16px;
  margin-top: 20px;
  border-radius: 10px;
  font-size: 14px;
  background: rgba(46, 204, 113, 0.12);
  border: 1px solid rgba(46, 204, 113, 0.3);
  color: #2ecc71;
}

/* Hero */
.landing-hero {
  text-align: center;
  padding: 80px 0 60px;
}

.landing-logo {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1.5px;
  background: linear-gradient(135deg, #f5c518 0%, #f0a000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.landing-tagline {
  font-size: 18px;
  color: #999;
  margin-bottom: 20px;
}

.landing-subtitle {
  font-size: 16px;
  color: #888;
  line-height: 1.6;
  max-width: 440px;
  margin: 0 auto 36px;
}

.landing-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.landing-btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.landing-btn--primary {
  background: linear-gradient(135deg, #f5c518 0%, #e6a800 100%);
  color: #0f0f0f;
  box-shadow: 0 4px 20px rgba(245, 197, 24, 0.3);
}

.landing-btn--primary:hover {
  background: linear-gradient(135deg, #ffd84d 0%, #f5c518 100%);
  box-shadow: 0 6px 28px rgba(245, 197, 24, 0.4);
  transform: translateY(-2px);
}

.landing-btn--secondary {
  background: #1a1a1a;
  color: #e8e8e8;
  border: 1px solid #2a2a2a;
}

.landing-btn--secondary:hover {
  border-color: #f5c518;
  color: #f5c518;
  box-shadow: 0 0 16px rgba(245, 197, 24, 0.15);
  transform: translateY(-2px);
}

/* How it works */
.landing-how {
  padding: 48px 0;
  border-top: 1px solid #1a1a1a;
}

.landing-section-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #888;
  text-align: center;
  margin-bottom: 28px;
  font-weight: 600;
}

.landing-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.landing-step {
  padding: 20px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  transition: border-color 0.2s ease;
}

.landing-step:hover {
  border-color: #3a3a3a;
}

.landing-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(245, 197, 24, 0.15);
  color: #f5c518;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}

.landing-step-title {
  font-size: 15px;
  font-weight: 600;
  color: #e8e8e8;
  margin-bottom: 6px;
}

.landing-step-desc {
  font-size: 14px;
  color: #888;
  line-height: 1.5;
}

/* Features */
.landing-features {
  padding: 48px 0;
  border-top: 1px solid #1a1a1a;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.landing-feature {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  transition: border-color 0.2s ease;
}

.landing-feature:hover {
  border-color: #3a3a3a;
}

.landing-feature-icon {
  font-size: 28px;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 197, 24, 0.12);
  border-radius: 12px;
}

.landing-feature-text h3 {
  font-size: 15px;
  font-weight: 600;
  color: #e8e8e8;
  margin-bottom: 4px;
}

.landing-feature-text p {
  font-size: 14px;
  color: #888;
  line-height: 1.5;
}

/* Footer */
.landing-footer {
  padding: 40px 0 60px;
  text-align: center;
  border-top: 1px solid #1a1a1a;
  color: #666;
  font-size: 15px;
}

.landing-footer a {
  color: #f5c518;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.landing-footer a:hover {
  opacity: 0.8;
}

/* Mobile responsive */
@media (max-width: 480px) {
  .landing-hero {
    padding: 56px 0 40px;
  }

  .landing-logo {
    font-size: 36px;
  }

  .landing-cta {
    flex-direction: column;
  }

  .landing-btn {
    text-align: center;
  }

  .landing-steps {
    grid-template-columns: 1fr;
  }
}
