/* ═══════════════════════════════════════════════════════════════════════════
   DocuCore — Custom Login Page Styles
   Two-panel layout: dark brand (left) + white form (right)
   Matches login-preview.html design exactly.
   Supports LTR (English) and RTL (Arabic) layouts.
   ═══════════════════════════════════════════════════════════════════════════ */

*,*::before,*::after { box-sizing: border-box; }

body {
  margin: 0; padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans Arabic', sans-serif;
  background: #0d0d0d;
}

/* ── Outer two-panel wrapper ─────────────────────────────────────────────── */
.dc-login-wrap {
  display: flex;
  min-height: 100vh;
}
.dc-login-wrap--rtl { direction: rtl; text-align: right; }

/* ── LEFT PANEL — dark brand ─────────────────────────────────────────────── */
.dc-login-left {
  flex: 1;
  background: #111;
  display: flex; flex-direction: column; justify-content: center;
  padding: 60px 56px;
  position: relative; overflow: hidden;
  border-right: 1px solid #222;
}
.dc-login-wrap--rtl .dc-login-left { border-right: none; border-left: 1px solid #222; }
@media (max-width: 860px) { .dc-login-left { display: none; } }

.dc-login-left::before {
  content: ''; position: absolute; width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,197,24,.12) 0%, transparent 70%);
  top: -100px; right: -100px; pointer-events: none;
}
.dc-login-left::after {
  content: ''; position: absolute; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,197,24,.06) 0%, transparent 70%);
  bottom: -60px; left: -40px; pointer-events: none;
}

.dc-login-left__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 56px; }
.dc-login-left__brand-icon {
  width: 44px; height: 44px; background: #f5c518; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.dc-login-left__brand-icon svg { width: 24px; height: 24px; }
.dc-login-left__brand img { height: 44px; width: auto; }
.dc-login-left__brand-name { font-size: 22px; font-weight: 900; color: #fff; letter-spacing: -.5px; }

.dc-login-left__tagline { font-size: 36px; font-weight: 900; color: #fff; line-height: 1.2; margin: 0 0 20px; letter-spacing: -.8px; }
.dc-login-left__tagline em { font-style: normal; color: #f5c518; }
.dc-login-left__desc { font-size: 15px; color: #888; line-height: 1.7; max-width: 380px; margin: 0; }

.dc-login-features { margin-top: 40px; display: flex; flex-direction: column; gap: 14px; }
.dc-login-feature { display: flex; align-items: center; gap: 12px; color: #bbb; font-size: 14px; }
.dc-login-feature__icon {
  width: 32px; height: 32px; border-radius: 8px; background: #1e1e1e; border: 1px solid #2a2a2a;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #f5c518;
}
.dc-login-feature__icon svg { width: 16px; height: 16px; }

/* ── RIGHT PANEL — white form ────────────────────────────────────────────── */
.dc-login-right {
  width: 480px; flex-shrink: 0; background: #fff;
  display: flex; align-items: center; justify-content: center;
  padding: 48px 40px;
}
@media (max-width: 860px) { .dc-login-right { width: 100%; padding: 40px 24px; } }

.dc-login-card { width: 100%; max-width: 380px; }

/* Mobile brand */
.dc-login-brand-mobile { display: none; text-align: center; margin-bottom: 32px; }
@media (max-width: 860px) { .dc-login-brand-mobile { display: block; } }
.dc-login-brand-mobile__inner { display: inline-flex; align-items: center; gap: 10px; justify-content: center; }
.dc-login-brand-mobile__icon {
  width: 36px; height: 36px; background: #f5c518; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.dc-login-brand-mobile__icon svg { width: 20px; height: 20px; }
.dc-login-brand-mobile__name { font-size: 20px; font-weight: 900; color: #111; letter-spacing: -.4px; }
.dc-login-brand-mobile img { height: 36px; width: auto; }

/* ── Heading ─────────────────────────────────────────────────────────────── */
.dc-login-heading { font-size: 24px; font-weight: 800; color: #111; margin: 0 0 6px; letter-spacing: -.4px; }
.dc-login-subhead  { font-size: 14px; color: #888; margin: 0 0 28px; }

/* ── Tabs ────────────────────────────────────────────────────────────────── */
.dc-login-tabs { display: flex; border-bottom: 2px solid #f0f0f0; margin-bottom: 24px; }
.dc-login-tab {
  flex: 1; text-align: center; padding: 10px 0; font-size: 14px; font-weight: 600;
  color: #aaa; text-decoration: none; border-bottom: 2.5px solid transparent;
  margin-bottom: -2px; transition: color .15s, border-color .15s;
}
.dc-login-tab:hover { color: #444; }
.dc-login-tab--active { color: #111; border-bottom-color: #111; }

/* ── Alerts ──────────────────────────────────────────────────────────────── */
.dc-login-alert {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 11px 14px; border-radius: 8px;
  font-size: 13.5px; font-weight: 500; margin-bottom: 18px; line-height: 1.5;
}
.dc-login-alert svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.dc-login-alert--error   { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.dc-login-alert--success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }

/* ── Google button ───────────────────────────────────────────────────────── */
.dc-login-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 12px 16px; background: #fff;
  border: 1.5px solid #dadce0; border-radius: 10px;
  font-size: 14.5px; font-weight: 600; color: #3c4043;
  text-decoration: none; cursor: pointer;
  transition: background .15s, box-shadow .15s, border-color .15s;
  margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.dc-login-google:hover { background: #f8f9fa; border-color: #c6c9cc; box-shadow: 0 2px 8px rgba(0,0,0,.1); }

/* ── Divider ─────────────────────────────────────────────────────────────── */
.dc-login-divider {
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
  color: #ccc; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
}
.dc-login-divider::before,
.dc-login-divider::after { content: ''; flex: 1; height: 1px; background: #eee; }

/* ── Form ────────────────────────────────────────────────────────────────── */
.dc-login-form { display: flex; flex-direction: column; }
.dc-field { margin-bottom: 16px; }
.dc-field--row { display: flex; align-items: center; margin-bottom: 20px; }

.dc-label {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13.5px; font-weight: 600; color: #374151; margin-bottom: 7px;
}
.dc-label__link { font-size: 12.5px; font-weight: 500; color: #999; text-decoration: none; }
.dc-label__link:hover { color: #333; text-decoration: underline; }

.dc-input-wrap { position: relative; }
.dc-input {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid #e5e7eb; border-radius: 10px;
  font-size: 14.5px; color: #111; background: #fafafa;
  outline: none; transition: border-color .2s, background .2s, box-shadow .2s;
  box-sizing: border-box;
}
.dc-input:focus { border-color: #111; background: #fff; box-shadow: 0 0 0 3px rgba(0,0,0,.07); }
.dc-input::placeholder { color: #bbb; }
.dc-input-wrap .dc-input { padding-right: 44px; }

.dc-pwd-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: #bbb; padding: 4px;
  display: flex; align-items: center; transition: color .15s;
}
.dc-pwd-toggle:hover { color: #555; }
.dc-pwd-toggle svg { width: 17px; height: 17px; }

.dc-checkbox-label {
  display: flex; align-items: center; gap: 7px;
  font-size: 13.5px; color: #666; cursor: pointer; user-select: none;
}
.dc-checkbox { width: 16px; height: 16px; cursor: pointer; accent-color: #111; }

/* ── Submit button ───────────────────────────────────────────────────────── */
.dc-btn--primary {
  display: block; width: 100%; padding: 13px 16px;
  background: #111; color: #fff; border: none; border-radius: 10px;
  font-size: 15px; font-weight: 700; cursor: pointer; letter-spacing: .01em;
  transition: background .15s, transform .1s, box-shadow .15s;
  margin-top: 4px; margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.dc-btn--primary:hover { background: #333; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.dc-btn--primary:active { transform: translateY(0); }

/* ── Switch line ─────────────────────────────────────────────────────────── */
.dc-login-switch { text-align: center; font-size: 13.5px; color: #888; margin: 0; }
.dc-login-switch a { color: #111; font-weight: 700; text-decoration: none; }
.dc-login-switch a:hover { text-decoration: underline; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.dc-login-footer { text-align: center; margin-top: 28px; padding-top: 16px; border-top: 1px solid #f5f5f5; }
.dc-login-footer a { font-size: 12px; color: #ccc; text-decoration: none; }
.dc-login-footer a:hover { color: #888; }

/* ── Already logged in ───────────────────────────────────────────────────── */
.dc-login__already { padding: 16px; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px; color: #15803d; font-size: 14px; }
.dc-login__already a { color: #15803d; font-weight: 600; }

/* ── RTL overrides ───────────────────────────────────────────────────────── */
.dc-login-wrap--rtl .dc-login-tabs         { flex-direction: row-reverse; }
.dc-login-wrap--rtl .dc-label              { flex-direction: row-reverse; }
.dc-login-wrap--rtl .dc-input-wrap .dc-input { padding-right: 14px; padding-left: 44px; }
.dc-login-wrap--rtl .dc-pwd-toggle         { right: auto; left: 12px; }
.dc-login-wrap--rtl .dc-login-brand-mobile__inner { flex-direction: row-reverse; }
.dc-login-wrap--rtl .dc-login-feature      { flex-direction: row-reverse; }
.dc-login-wrap--rtl *:not(input):not(textarea) { font-family: 'Noto Sans Arabic','Segoe UI',Tahoma,'Arial Unicode MS',sans-serif; }
.dc-login-wrap--rtl input[type="email"],
.dc-login-wrap--rtl input[type="text"]     { direction: ltr; text-align: left; }
