/* ==========================================================================
   ACRB LOGIN COMPONENT (SCOPED - NO :ROOT, NO GRADIENTS)
   Location: assets/css/frontend/login.css
   ========================================================================== */

/* Scoped Variable Fallbacks & Font/Text Colors */
.acrb-auth-page-wrapper,
.acrb-auth-solo-wrapper {
  --acrb-login-primary: #4f46e5;
  --acrb-login-secondary: #64748b;
  --acrb-login-text: #0f172a;
  --acrb-login-accent: #059669;
  --acrb-login-btn-bg: #4f46e5;
  --acrb-login-btn-hover: #4338ca;
  --acrb-login-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  font-family: var(--acrb-login-font, sans-serif);
  color: var(--acrb-login-text, #0f172a);
  box-sizing: border-box;
}

.acrb-auth-page-wrapper *,
.acrb-auth-page-wrapper *::before,
.acrb-auth-page-wrapper *::after,
.acrb-auth-solo-wrapper *,
.acrb-auth-solo-wrapper *::before,
.acrb-auth-solo-wrapper *::after {
  box-sizing: inherit;
}

/* --------------------------------------------------------------------------
   SVG Icon Standards
   -------------------------------------------------------------------------- */
.acrb-login-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  vertical-align: middle;
}

/* --------------------------------------------------------------------------
   Wrapper Layouts (Solo vs Split Container)
   -------------------------------------------------------------------------- */
.acrb-auth-solo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 24px 16px;
}

.acrb-auth-page-wrapper {
  max-width: 980px;
  margin: 40px auto;
  display: flex;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08);
  border: 1px solid #e2e8f0;
}

/* --------------------------------------------------------------------------
   Side Info Panel (Solid Dark Theme - No Gradients)
   -------------------------------------------------------------------------- */
.acrb-auth-side-info {
  flex: 1;
  background: var(--acrb-login-text, #0f172a);
  padding: 50px 40px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.acrb-auth-side-info h2 {
  color: #ffffff !important;
  font-size: 28px;
  margin: 0 0 14px 0;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.acrb-auth-side-info p {
  color: #94a3b8;
  line-height: 1.55;
  font-size: 14px;
  margin: 0;
}

.acrb-auth-security-badge {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.acrb-badge-icon {
  color: #60a5fa;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.acrb-badge-text {
  font-size: 12.5px;
  color: #cbd5e1;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Form Card & Controls
   -------------------------------------------------------------------------- */
.acrb-auth-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 36px 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08);
}

.acrb-auth-page-wrapper .acrb-auth-card {
  flex: 1.2;
  padding: 50px 40px;
  border: none;
  max-width: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.acrb-auth-title {
  margin: 0 0 6px 0;
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--acrb-login-text, #0f172a);
  letter-spacing: -0.02em;
}

.acrb-auth-page-wrapper .acrb-auth-title {
  font-size: 24px;
  font-weight: 800;
}

.acrb-auth-subtitle {
  margin: 0 0 24px 0;
  font-size: 0.9rem;
  color: var(--acrb-login-secondary, #64748b);
}

.acrb-auth-page-wrapper .acrb-auth-subtitle {
  margin-bottom: 28px;
  font-size: 13.5px;
}

.acrb-login-field {
  margin-bottom: 18px;
}

.acrb-auth-page-wrapper .acrb-login-field {
  margin-bottom: 20px;
}

.acrb-auth-page-wrapper .acrb-field-password {
  margin-bottom: 22px;
}

.acrb-login-field label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  color: #475569;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

.acrb-auth-page-wrapper .acrb-login-field label {
  font-size: 13px;
  color: var(--acrb-login-text, #0f172a);
}

.acrb-login-field input {
  width: 100% !important;
  height: 46px !important;
  padding: 8px 14px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  color: var(--acrb-login-text, #0f172a) !important;
  transition: all 0.2s ease !important;
  font-family: inherit !important;
  outline: none !important;
}

.acrb-auth-page-wrapper .acrb-login-field input {
  height: 42px !important;
  padding: 0 14px !important;
  border-color: #cbd5e1 !important;
  border-radius: 8px !important;
  font-size: 13.5px !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02) !important;
}

.acrb-login-field input:hover {
  border-color: #94a3b8 !important;
  background: #ffffff !important;
}

.acrb-login-field input:focus {
  background: #ffffff !important;
  border-color: var(--acrb-login-primary, #4f46e5) !important;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12) !important;
}

.acrb-auth-page-wrapper .acrb-login-field input:focus {
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.08) !important;
}

.acrb-password-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.acrb-password-header label {
  margin-bottom: 0 !important;
}

.acrb-forgot-link {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--acrb-login-primary, #4f46e5);
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.acrb-auth-page-wrapper .acrb-forgot-link {
  font-size: 12px;
}

.acrb-forgot-link:hover {
  text-decoration: underline;
  opacity: 0.9;
}

/* --------------------------------------------------------------------------
   Buttons & Status Messages
   -------------------------------------------------------------------------- */
.acrb-login-btn {
  width: 100%;
  height: 48px;
  background: var(--acrb-login-btn-bg, #4f46e5);
  color: #ffffff !important;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
  margin-top: 24px;
  font-family: inherit;
}

.acrb-auth-page-wrapper .acrb-login-btn {
  height: 44px;
  border-radius: 8px;
  font-size: 13.5px;
  margin-top: 6px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.acrb-login-btn:hover {
  background: var(--acrb-login-btn-hover, #4338ca);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
  opacity: 0.94;
}

.acrb-login-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.acrb-auth-page-wrapper .acrb-login-btn:disabled {
  background: #94a3b8 !important;
  border-color: #94a3b8 !important;
}

#acrb-login-status {
  margin-top: 14px;
  font-size: 0.85rem;
  text-align: center;
  font-weight: 600;
  min-height: 22px;
}

.acrb-auth-page-wrapper #acrb-login-status {
  font-size: 13px;
}

.status-loading {
  color: #64748b;
}

.acrb-auth-page-wrapper .status-loading {
  color: var(--acrb-login-primary, #4f46e5);
}

.status-success {
  color: #059669;
}

.acrb-auth-page-wrapper .status-success {
  color: var(--acrb-login-accent, #059669);
}

.status-error {
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 8px 12px;
  border-radius: 8px;
}

.acrb-auth-page-wrapper .status-error {
  color: #991b1b;
  padding: 10px 14px;
}

.acrb-auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--acrb-login-secondary, #64748b);
}

.acrb-auth-page-wrapper .acrb-auth-footer {
  font-size: 13px;
}

.acrb-auth-footer a {
  color: var(--acrb-login-primary, #4f46e5);
  font-weight: 700;
  text-decoration: none;
}

.acrb-auth-footer a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Responsive Rules
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .acrb-auth-page-wrapper {
    flex-direction: column;
    margin: 20px;
  }
  .acrb-auth-side-info {
    padding: 32px 24px;
  }
  .acrb-auth-page-wrapper .acrb-auth-card {
    padding: 32px 24px;
  }
}

@media (max-width: 480px) {
  .acrb-auth-card {
    padding: 24px 20px;
    border: none;
    box-shadow: none;
    background: transparent;
  }
  .acrb-auth-solo-wrapper {
    padding: 0;
  }
}