@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

/* =========================================================
   Sandıkçı — Account Layout + Account Pages
   (Login, ForgotPassword, ResetPassword, Phone/TwoStep, etc.)
   ========================================================= */

/* ─── CSS Variables ─── */
:root {
  --acc-red:       #E60012;
  --acc-red-dark:  #c8000f;
  --acc-navy:      #0E1E3A;
  --acc-surface:   #F8F9FB;
  --acc-border:    #E5E7EB;
  --acc-text:      #111827;
  --acc-muted:     #6B7280;
  --acc-ff:        'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --acc-shadow:    0 4px 24px rgba(14, 30, 58, 0.08);
  --acc-radius:    16px;
  --acc-radius-in: 10px;
}

/* ═══════════════════════════════════════
   LAYOUT CHROME — _AccountLayout.cshtml
   ═══════════════════════════════════════ */

.account-body {
  margin: 0;
  font-family: var(--acc-ff);
  background: var(--acc-surface);
  color: var(--acc-text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.account-header {
  background: #fff;
  border-bottom: 1px solid var(--acc-border);
  padding: 20px 0;
  flex-shrink: 0;
}

.account-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.account-header-logo {
  display: inline-block;
  text-decoration: none;
  line-height: 0;
}

.account-header-logo img {
  height: 80px;
  width: auto;
  display: block;
}

/* Main — flex-grow so footer sticks to bottom */
.account-body main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 48px 16px;
}

/* Footer */
.account-footer {
  background: var(--acc-navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 24px 0;
  flex-shrink: 0;
}

.account-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.account-footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.account-footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  transition: color .15s;
}

.account-footer-links a:hover { color: #fff; }

.account-footer-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ═══════════════════════════════════════
   ACCOUNT PAGE — Form cards
   ═══════════════════════════════════════ */

/* Wrapper — fills main width */
.account-page {
  width: 100%;
  font-family: var(--acc-ff);
}

/* Centered single-column wrapper */
.account-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
}

/* Form card */
.account-card {
  background: #fff;
  border-radius: var(--acc-radius);
  box-shadow: var(--acc-shadow);
  padding: 48px 40px;
  font-family: var(--acc-ff);
}

.account-card h1 {
  color: var(--acc-navy);
  font-family: var(--acc-ff);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.account-card .subtitle {
  color: var(--acc-muted);
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 32px;
}

/* Validation summary */
.account-card .val-errors {
  background: rgba(230, 0, 18, 0.06);
  border: 1px solid rgba(230, 0, 18, 0.2);
  border-radius: var(--acc-radius-in);
  padding: 12px 14px;
  margin-bottom: 20px;
}

.account-card .val-errors,
.account-card .val-errors ul {
  color: var(--acc-red);
  font-size: 13px;
  list-style: none;
  padding-left: 0;
  margin: 0;
}

/* Labels */
.account-card .field-label {
  display: block;
  color: var(--acc-navy);
  font-weight: 600;
  font-size: 14px;
  margin: 20px 0 8px;
}

/* Inputs */
.account-card .field-input {
  display: block;
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--acc-border);
  border-radius: var(--acc-radius-in);
  font-family: var(--acc-ff);
  font-size: 15px;
  color: var(--acc-text);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
  box-sizing: border-box;
}

.account-card .field-input:focus {
  border-color: var(--acc-red);
  box-shadow: 0 0 0 3px rgba(230, 0, 18, 0.10);
}

.account-card .field-input::placeholder { color: #B0B7C3; }

/* Password wrapper */
.account-card .pwd-wrap { position: relative; }
.account-card .pwd-wrap .field-input { padding-right: 44px; }

.account-card .pwd-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity .15s;
  line-height: 0;
}

.account-card .pwd-toggle:hover { opacity: 0.85; }
.account-card .pwd-toggle img { width: 20px; height: 20px; display: block; }

/* Field error span */
.account-card .field-error {
  display: block;
  color: var(--acc-red);
  font-size: 13px;
  margin-top: 5px;
}

/* Remember row */
.account-card .remember-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0 28px;
}

.account-card .remember-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--acc-red);
  cursor: pointer;
  flex-shrink: 0;
}

.account-card .remember-row label {
  font-size: 14px;
  font-weight: 400;
  color: var(--acc-text);
  cursor: pointer;
  margin: 0;
}

/* Submit button */
.account-card .btn-submit {
  display: block;
  width: 100%;
  padding: 15px;
  background: var(--acc-red);
  color: #fff;
  border: 0;
  border-radius: var(--acc-radius-in);
  font-family: var(--acc-ff);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background .15s, transform .1s;
  text-align: center;
}

.account-card .btn-submit:hover  { background: var(--acc-red-dark); }
.account-card .btn-submit:active { transform: translateY(1px); }
.account-card .btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Ghost button */
.account-card .btn-ghost {
  display: block;
  width: 100%;
  padding: 14px;
  background: transparent;
  color: var(--acc-muted);
  border: 1.5px solid var(--acc-border);
  border-radius: var(--acc-radius-in);
  font-family: var(--acc-ff);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: border-color .15s, color .15s;
  text-align: center;
}

.account-card .btn-ghost:hover {
  border-color: var(--acc-navy);
  color: var(--acc-navy);
}

/* Forgot / back link */
.account-card .forgot-link {
  display: block;
  text-align: center;
  margin-top: 20px;
  color: var(--acc-muted);
  font-size: 14px;
  text-decoration: none;
  transition: color .15s;
}

.account-card .forgot-link:hover { color: var(--acc-red); }

/* Or divider */
.account-card .or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--acc-muted);
  font-size: 13px;
}

.account-card .or-divider::before,
.account-card .or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--acc-border);
}

/* Brand side panel */
.account-brand {
  background: var(--acc-navy);
  border-radius: var(--acc-radius);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 64px 48px;
  min-height: 420px;
}

.account-brand img {
  max-width: 200px;
  margin-bottom: 32px;
  border-radius: 8px;
}

.account-brand .brand-tagline {
  font-family: var(--acc-ff);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 12px;
}

.account-brand .brand-subtitle {
  font-family: var(--acc-ff);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.account-brand .brand-red-line {
  width: 40px;
  height: 3px;
  background: var(--acc-red);
  border-radius: 2px;
  margin: 20px auto 0;
}

/* ─── Mobile ─── */
@media (max-width: 768px) {
  .account-body main        { padding: 24px 16px; align-items: flex-start; }
  .account-header-logo img  { height: 44px; }
  .account-footer-inner     { flex-direction: column; text-align: center; }
  .account-footer-links     { justify-content: center; }
  .account-grid             { grid-template-columns: 1fr; }
  .account-brand            { display: none; }
  .account-card             { padding: 32px 24px; }
  .account-card h1          { font-size: 24px; }
}
