/*=- /Content/Layouts/Smooth/stylesheets/section-member-login-popup.less -=*/

.custom-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1050;
  justify-content: center;
}
#loginModal .loginModalContent,
#memberPanel .member-panel-box,
#forgotModal .forgot-box {
  position: relative;
  background: white;
  border: 1px solid #d8d8d8;
  padding: 20px;
  box-sizing: border-box;
  margin-top: 80px;
  height: 350px;
}
#loginModal .loginModalContent {
  z-index: 1050;
}
#memberPanel .member-panel-box {
  width: 400px;
}
#forgotModal .forgot-box {
  width: 350px;
}
#loginModal .loginModalContent:after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 70px;
  height: 100%;
  background: url('/images/login-pattern.png') center center no-repeat;
  background-size: cover;
}
.loginClose,
.member-close,
.forgot-close {
  position: absolute;
  top: 5px;
  right: 10px;
  font-size: 24px;
  cursor: pointer;
  color: #777777;
  z-index: 1050;
}
/* Styling Elements */

#loginModal h2,
#forgotModal h3 {
  margin: 0 0 25px;
  font-size: 26px;
  font-weight: 600;
  color: #9d1b5f;
}
.loginField label {
  display: block;
  color: #666666;
  font-size: 13px;
}
.loginField input,
#forgotEmail {
  width: 100%;
  height: 38px;
  border: 1px solid #cccccc;
  background: #fafafa;
  padding: 0 12px;
  box-sizing: border-box;
  margin-bottom: 15px;
}
.loginField input:focus,
#forgotEmail:focus {
  border-color: #2a7f91;
  outline: none;
  background: white;
}
.remember {
  font-size: 13px;
  color: #666666;
  margin-bottom: 20px;
  display: flex;
  flex-flow: row wrap;
  gap: 12px 24px;
  padding: 1em;
}
.remember label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}
#loginModal button,
.forgot-btn,
.logout-btn,
.dashboard-btn {
  background: #2a7f91;
  color: white;
  border: none;
  padding: 11px 28px;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  width: 100%;
}
#loginModal button:hover,
.forgot-btn:hover,
.logout-btn:hover,
.dashboard-btn:hover {
  background: #216a78;
}
.loginFooter {
  margin-top: 25px;
  font-size: 13px;
}
.loginFooter a {
  color: #9d1b5f;
  text-decoration: none;
  float: inline-end;
  font-weight: 600;
}
.loginFooter a:hover {
  text-decoration: underline;
}
/* ==========================================================================
PROFESSIONAL MEMBER PANEL STYLES
========================================================================== */

#memberPanel .member-panel-box {
  position: fixed;
  height: 355px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  box-sizing: border-box;
  width: 100%;
  max-width: 388px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}
/* Header Area */

.member-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}
/* Perfectly Rounded Initials Badge */

.member-avatar {
  width: 52px;
  height: 52px;
  background: #9d1b5f;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.15);
}
.member-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.member-title h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.2;
}
.member-since {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  font-weight: 400;
}
/* Sleek Structured Info Grid */

.member-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
/* Spans the full width for the user's real name block */

.member-info-grid .info-item:last-child {
  grid-column: span 2;
}
.info-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 5px 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.info-item .label {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #64748b;
}
.info-item .value {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
}
/* Action Buttons Positioning & UI styling */

.member-panel-box .dashboard-btn,
.member-panel-box .logout-btn {
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  box-sizing: border-box;
  transition: all 0.2s ease;
  cursor: pointer;
}
.member-panel-box .dashboard-btn {
  background: #2a7f91;
  color: white !important;
  text-decoration: none;
  border: none;
  margin-bottom: 10px;
  display: block;
  text-align: center;
}
.member-panel-box .dashboard-btn:hover {
  background: #216a78;
  transform: translateY(-1px);
}
.member-panel-box .logout-btn {
  background: white;
  color: #64748b;
  border: 1px solid #cbd5e1;
}
.member-panel-box .logout-btn:hover {
  background: #f8fafc;
  color: #9d1b5f;
  border-color: #9d1b5f;
}
/* Close Window 'X' Icon positioning */

.member-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 24px;
  font-weight: 300;
  cursor: pointer;
  color: #94a3b8;
  transition: color 0.15s ease;
  line-height: 1;
}
.member-close:hover {
  color: #475569;
}
/* ================= TABLET (max-width: 1024px) ================= */

@media (max-width: 1236px) {
  .custom-modal-overlay {
    z-index: 1050 !important;
    backdrop-filter: blur(3px);
  }
  #loginModal .loginModalContent,
  .flyout-box,
  .forgot-box {
    width: 380px !important;
    padding: 25px;
  }
  .member-panel-box {
    width: 400px !important;
    padding: 25px;
    text-align: center;
  }
  .member-info-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}
/* ================= TABLET (max-width: 1024px) ================= */

@media (max-width: 1024px) {
  .custom-modal-overlay {
    z-index: 1050 !important;
    backdrop-filter: blur(3px);
  }
  #loginModal .loginModalContent,
  .flyout-box,
  .forgot-box {
    width: 380px !important;
    padding: 25px;
  }
  .member-panel-box {
    width: 400px !important;
    padding: 25px;
    text-align: center;
  }
  .member-info-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}
/* ================= MOBILE LARGE (max-width: 768px) ================= */

@media (max-width: 768px) {
  .custom-modal-overlay {
    align-items: flex-start !important;
    padding: 20px 12px !important;
    overflow-y: auto !important;
  }
  #loginModal .loginModalContent,
  .flyout-box,
  .forgot-box,
  .member-panel-box {
    width: 92% !important;
    max-width: 400px !important;
    margin: 30px auto !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25) !important;
  }
  .member-panel-box {
    padding: 20px !important;
    text-align: center;
  }
  #loginModal h2,
  .flyout-box h3,
  .forgot-box h3,
  .member-title h3 {
    font-size: 20px !important;
    text-align: center;
  }
  .member-header {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 10px;
    padding-bottom: 12px;
  }
  .member-avatar {
    margin: 0 auto 5px auto !important;
  }
  .member-info-grid {
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }
  .member-info-grid .info-item:last-child {
    grid-column: span 1 !important;
  }
  .dashboard-btn,
  .logout-btn,
  .flyout-btn,
  .forgot-btn,
  #loginBtn {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
  }
}
/* ================= MOBILE SMALL (max-width: 480px) ================= */

@media (max-width: 480px) {
  #loginModal .loginModalContent,
  .flyout-box,
  .forgot-box,
  .member-panel-box {
    width: 95% !important;
    padding: 18px !important;
    margin: 15px auto !important;
  }
  #loginModal .loginModalContent {
    padding-right: 18px !important;
  }
  #loginModal .loginModalContent:after {
    display: none !important;
  }
  #loginModal input,
  .flyout-box input,
  .forgot-box input {
    font-size: 14px;
    padding: 10px;
  }
  .loginFooter,
  .flyout-links {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
  .member-info-grid {
    gap: 10px !important;
  }
}
/* ================= SITE BRANDING LOGO ADJUSTMENTS ================= */

.site-id {
  flex: 0 0 auto;
}
.design-header .site-id img {
  width: 158px !important;
  height: 35px !important;
}
@media (max-width: 991px) {
  .design-header .site-id img {
    width: 135px !important;
    height: auto !important;
    max-height: 30px !important;
  }
}
