/* user-app/css/login.css */

/* ==============================
   LOGIN PAGE LAYOUT
================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.login-page {
  max-width: 480px;
  margin: 0 auto;
  background: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ==============================
   BLUE HEADER - Photo Exact Match
================================ */
.login-header {
  background: linear-gradient(135deg, #1565e8 0%, #1a78f5 50%, #2563eb 100%);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 12px rgba(21, 101, 232, 0.3);
}

.login-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shark-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.shark-logo-img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 12px;
}

.shark-logo-fallback {
  display: none;
  font-size: 22px;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  border-radius: 10px;
}

.header-brand-name {
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.download-btn {
  background: linear-gradient(135deg, #ff6b35, #f53d00);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 22px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(255, 107, 53, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.3px;
}

.download-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 5px 15px rgba(255, 107, 53, 0.5);
}

/* ==============================
   LOGIN FORM CONTAINER
================================ */
.login-container {
  flex: 1;
  padding: 40px 20px 20px;
  display: flex;
  flex-direction: column;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #b0b8c1;
  width: 20px;
  height: 20px;
}

.form-control {
  width: 100%;
  padding: 16px 16px 16px 48px;
  border: none;
  background-color: #f6f7fb;
  border-radius: 12px;
  font-size: 15px;
  outline: none;
  color: #333;
  transition: box-shadow 0.2s;
}

.form-control:focus {
  box-shadow: 0 0 0 2px #4da6ff;
  background-color: #f0f6ff;
}

.form-control::placeholder {
  color: #b0b8c1;
}

/* ==============================
   REGISTER + FORGOT ROW
================================ */
.register-forgot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding: 0 2px;
}

.register-link {
  color: #1565e8;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: opacity 0.2s;
}

.register-link:hover {
  opacity: 0.75;
}

.forgot-link {
  color: #1565e8;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: opacity 0.2s;
}

.forgot-link:hover {
  opacity: 0.75;
}

/* ==============================
   ERROR MESSAGE
================================ */
.error-msg {
  color: #ef4444;
  text-align: center;
  margin-bottom: 16px;
  font-size: 14px;
}

.error-msg.hidden {
  display: none;
}

/* ==============================
   LOGIN BUTTON - Black, Bottom
================================ */
.login-btn-container {
  margin-top: auto;
  padding-bottom: 30px;
}

.btn-primary {
  width: 100%;
  padding: 18px;
  background: #111111;
  color: #ffffff;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background: #222222;
  transform: scale(1.01);
}

.btn-primary:active {
  transform: scale(0.99);
}

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

/* ==============================
   SEO CONTENT (below the login screen)
   Appears only on scroll - the first view stays the login form.
================================ */
.login-seo-content {
  width: min(820px, calc(100% - 32px));
  margin: 28px auto 48px;
  padding: clamp(24px, 5vw, 44px);
  background: #ffffff;
  border: 1px solid #e6edf5;
  border-radius: 20px;
  box-shadow: 0 14px 40px rgba(0, 123, 255, 0.08);
  color: #354052;
  font-size: 15px;
  line-height: 1.72;
}

.login-seo-content h1 {
  margin: 12px 0 14px;
  color: #172033;
  line-height: 1.22;
  font-size: clamp(26px, 5.4vw, 36px);
  letter-spacing: -0.025em;
}

.login-seo-content h2,
.login-seo-content h3 {
  color: #172033;
  line-height: 1.3;
}

.login-seo-content h2 {
  margin: 30px 0 10px;
  font-size: clamp(21px, 4vw, 28px);
}

.login-seo-content h2:first-of-type {
  margin-top: 12px;
}

.login-seo-content h3 {
  margin: 22px 0 7px;
  font-size: 17px;
}

.login-seo-content p {
  margin: 0 0 14px;
}

.seo-kicker {
  display: inline-flex;
  padding: 6px 11px;
  border-radius: 999px;
  background: #eaf4ff;
  color: #0066cc;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.seo-summary {
  font-size: 16px;
}

.seo-steps {
  margin: 18px 0 0;
  padding-left: 23px;
}

.seo-steps li + li {
  margin-top: 8px;
}

.seo-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.seo-card {
  padding: 20px;
  border: 1px solid #deebf8;
  border-radius: 14px;
  background: #f8fbff;
}

.seo-card h2 {
  margin-top: 0;
  font-size: 20px;
}

.seo-card a,
.seo-links a {
  color: #007bff;
  font-weight: 600;
  text-underline-offset: 3px;
}

.seo-takeaway {
  margin: 28px 0;
  padding: 16px 18px;
  border-left: 4px solid #007bff;
  border-radius: 0 12px 12px 0;
  background: #eef7ff;
}

.seo-faq {
  padding-top: 4px;
}

.seo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e6edf5;
}

@media (max-width: 640px) {
  .login-seo-content {
    width: min(100% - 20px, 820px);
    margin-top: 16px;
    padding: 22px 18px;
    border-radius: 16px;
  }

  .seo-card-grid {
    grid-template-columns: 1fr;
  }
}
