/* ==========================================================================
   HOME NEWS - DEDICATED STAFF JOURNALIST LOGIN STYLES
   File: assets/css/staff-login.css
   ========================================================================== */

/* Full viewport background (dark navy identical to admin) */
.staff-login-page {
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 80% 20%, #1e293b 0%, #0f172a 60%, #080d1a 100%);
  font-family: var(--font-body, 'Inter', -apple-system, BlinkMacSystemFont, sans-serif);
  color: #1e293b;
  padding: 32px 16px;
  box-sizing: border-box;
}

/* Centered Login Card (same proportions as admin: 460px max-width) */
.staff-login-card {
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.35), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

/* Card Header with Red Brand Accent Border */
.staff-login-header {
  background: #111827;
  color: #ffffff;
  padding: 36px 32px 28px 32px;
  text-align: center;
  border-bottom: 4px solid var(--primary-red, #D71920);
  position: relative;
}

/* Brand Emblem with Journalist Blue Highlight */
.brand-emblem-staff {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #2563eb;
  color: #ffffff;
  font-family: var(--font-masthead, 'Cinzel', serif);
  font-weight: 900;
  font-size: 1.25rem;
  border-radius: 6px;
  margin-bottom: 14px;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.4);
}

.staff-login-title {
  font-family: var(--font-masthead, 'Cinzel', Georgia, serif);
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.2;
}

.staff-login-title span {
  color: var(--primary-red, #D71920);
}

/* Staff Journalist Badge (Blue) */
.staff-role-pill {
  display: inline-block;
  background: rgba(37, 99, 235, 0.18);
  color: #93c5fd;
  border: 1px solid rgba(37, 99, 235, 0.4);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 12px;
  margin-top: 10px;
}

.staff-login-subtitle {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 8px 0 0 0;
  line-height: 1.4;
}

/* Card Body */
.staff-login-body {
  padding: 32px;
}

/* Vertical Form Layout */
.staff-login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.login-form-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: #334155;
  letter-spacing: 0.01em;
}

.login-form-control {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 0.92rem;
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.login-form-control::placeholder {
  color: #94a3b8;
}

/* Blue Focus State for Staff */
.login-form-control:focus {
  outline: none;
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

/* Password Input Wrapper with Show/Hide Button */
.password-input-wrapper {
  position: relative;
  width: 100%;
}

.password-input-wrapper .login-form-control {
  padding-right: 44px;
}

.toggle-password-btn {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 5px 5px 0;
  transition: color 0.15s ease;
}

.toggle-password-btn:hover {
  color: #0f172a;
}

.toggle-password-btn:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: -2px;
}

/* Remember Me and Forgot Password row */
.form-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: -4px;
  font-size: 0.82rem;
}

.remember-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #475569;
  user-select: none;
}

.remember-checkbox {
  width: 16px;
  height: 16px;
  accent-color: #2563eb;
  cursor: pointer;
}

.forgot-password-link {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.forgot-password-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* Full-width Blue Login Button for Staff */
.btn-submit-staff {
  width: 100%;
  height: 46px;
  background-color: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.28);
  margin-top: 6px;
}

.btn-submit-staff:hover:not(:disabled) {
  background-color: #1d4ed8;
  box-shadow: 0 6px 12px -2px rgba(37, 99, 235, 0.38);
}

.btn-submit-staff:active:not(:disabled) {
  transform: translateY(1px);
}

.btn-submit-staff:disabled {
  background-color: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
}

/* Loading Spinner */
.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  display: none;
  animation: staff-spin 0.75s linear infinite;
}

.btn-submit-staff.is-loading .btn-spinner {
  display: inline-block;
}

.btn-submit-staff.is-loading .btn-text-content {
  opacity: 0.9;
}

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

/* Card Footer Navigation Links */
.staff-login-footer {
  text-align: center;
  padding-top: 24px;
  margin-top: 12px;
  border-top: 1px solid #f1f5f9;
  font-size: 0.8rem;
  color: #64748b;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.staff-login-footer a {
  color: #475569;
  text-decoration: none;
  transition: color 0.15s ease;
}

.staff-login-footer a:hover {
  color: #2563eb;
}

/* Responsive Breakpoints */
@media screen and (max-width: 480px) {
  .staff-login-page {
    padding: 16px 12px;
  }

  .staff-login-card {
    border-radius: 6px;
  }

  .staff-login-header {
    padding: 28px 20px 22px 20px;
  }

  .staff-login-title {
    font-size: 1.6rem;
  }

  .staff-login-body {
    padding: 24px 18px;
  }

  .form-options-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
