/* Link+ Style Patch - Login Page Visual Overrides */
/* Blue Color Scheme */

/* =============================================
   Body Background
   ============================================= */
body, html {
  background: radial-gradient(ellipse 80% 50% at 50% -5%, rgba(26, 140, 255, 0.08) 0%, transparent 65%), #0a0a12;
  /* overflow: hidden removed - was clipping menu */
}

/* =============================================
   Login Logo Pseudo-element
   ============================================= */
.login::before {
  content: '';
  display: block;
  width: 100%;
  height: 70px;
  background-image: url('/linkplus/css/images/logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-bottom: 0px;
  filter: drop-shadow(0 0 20px rgba(26, 140, 255, 0.4));
}

.mainClassBg .login::before {
  display: none !important;
}

/* =============================================
   Login Container
   ============================================= */
.login {
  background: rgba(20, 20, 20, 0.9);
  box-shadow: 0 0 80px rgba(26, 140, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  width: 70vw;
  max-width: 900px;
  padding: 40px 60px;
  padding-top: 15px !important;
  padding-bottom: 20px !important;
  /* overflow-y: auto removed */
  max-height: 100vh !important;
  scrollbar-width: none !important;
}

.login::-webkit-scrollbar {
  display: none !important;
}

.mainLoadingClass:not(.mainClassBg) .login .footer {
  padding-bottom: 20px !important;
  margin-bottom: 10px !important;
}

.login .codeDiv {
  margin-top: 0 !important;
}

.login label, .login .codeHeader {
  margin-bottom: 5px !important;
}

.login .mainContainer input {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  height: auto !important;
}

.login .mainContainer > div {
  margin-bottom: 8px !important;
}

.login .codeHeader {
  margin-top: 5px !important;
  margin-bottom: 3px !important;
}

.login .footer {
  padding-top: 10px !important;
  margin-top: 5px !important;
}

/* =============================================
   Logo
   ============================================= */
.login .logo,
.mainClassBg.p50 .logo {
  margin: 0 auto 20px auto;
}

/* =============================================
   Headers
   ============================================= */
.codeHeader1 {
  display: none !important;
}

.codeHeader {
  font-size: 22px;
  color: #888 !important;
  padding-bottom: 10px;
}

/* =============================================
   Form Inputs
   ============================================= */
.login .codeDiv input,
.codeDiv input {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 18px;
  padding: 14px 16px;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.login .codeDiv input:focus,
.codeDiv input:focus {
  border: 1px solid rgba(26, 140, 255, 0.5) !important;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(26, 140, 255, 0.08);
  outline: 0;
}

.login .codeDiv input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.login .codeDiv .text {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.login .codeDiv .text:focus {
  border: 1px solid rgba(26, 140, 255, 0.5);
  border-radius: 8px;
  box-shadow: 0 0 0 3px rgba(26, 140, 255, 0.08);
}

/* Labels */
.login label {
  color: #888;
  font-size: 18px;
  letter-spacing: 0.5px;
  padding-top: 18px;
  padding-bottom: 4px;
}

.codeDiv b,
.codeDiv .text.disabled {
  color: #888;
}

/* =============================================
   Buttons - Login (#btnLogin)
   ============================================= */
#btnLogin {
  background: linear-gradient(135deg, #1a8cff 0%, #0055cc 100%);
  border: none;
  border-radius: 12px;
  color: #ffffff;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  cursor: pointer;
}

#btnLogin:hover {
  background: linear-gradient(135deg, #3399ff 0%, #0066dd 100%);
}

#btnLogin:focus {
  background: linear-gradient(135deg, #1a8cff 0%, #0055cc 100%);
  box-shadow: 0 8px 30px rgba(26, 140, 255, 0.5);
  outline: 0;
  color: #ffffff;
}

/* =============================================
   Buttons - Register (#btnRegister)
   ============================================= */
#btnRegister {
  background: transparent !important;
  background-color: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 12px;
  color: #888;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  cursor: pointer;
}

#btnRegister:hover {
  border-color: rgba(26, 140, 255, 0.3);
  color: #aaa;
}

#btnRegister:focus {
  border-color: rgba(26, 140, 255, 0.45);
  color: #1a8cff;
  box-shadow: 0 8px 30px rgba(26, 140, 255, 0.3);
  outline: 0;
}

.mainClassBg .login .footer {
  margin-top: 40px !important;
  padding-top: 40px !important;
}

/* =============================================
   Generic Footer Buttons (fallback)
   ============================================= */
.login .footer button,
.login .footer.w button {
  background-color: rgba(87, 87, 86, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #ffffff;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.login .footer button:hover {
  background-color: rgba(87, 87, 86, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
}

.login .footer button:focus,
.login .footer.w button:focus {
  background-color: rgba(26, 140, 255, 0.15);
  border-color: rgba(26, 140, 255, 0.45);
  box-shadow: 0 0 20px rgba(26, 140, 255, 0.2);
  outline: 0;
  color: #1a8cff;
}

.footer_page button {
  background-color: rgba(87, 87, 86, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.footer_page button:focus {
  background-color: rgba(26, 140, 255, 0.15) !important;
  border-color: rgba(26, 140, 255, 0.45);
  box-shadow: 0 0 20px rgba(26, 140, 255, 0.2);
  outline: 0;
}

/* =============================================
   Error Messages
   ============================================= */
.login .error,
.login .error1,
.error.txtcolor {
  color: #ff6b6b !important;
  opacity: 1 !important;
  font-size: 16px;
}

.login .login_message_text {
  color: #1a8cff;
}

/* =============================================
   Forgot Password Link
   ============================================= */
.footerLink {
  color: #888;
  transition: color 0.3s ease;
}

.footerLink:focus,
.footerLink:hover {
  color: #1a8cff;
}

/* =============================================
   Checkbox / Terms & Conditions
   ============================================= */
.login .checkbox {
  color: #888;
}

.login .checkbox .terms,
.login .checkbox .terms2 {
  color: #888;
}

.login .checkbox .terms1 {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.login .checkbox .terms1:focus,
.login .checkbox .terms1:hover {
  color: #1a8cff;
}

.login .checkbox input {
  accent-color: #1a8cff;
}

.login .checkbox input:focus {
  outline: 2px solid #1a8cff;
}

/* =============================================
   Active / Inactive Tab States
   ============================================= */
.login .active {
  border-bottom: 2px solid #1a8cff;
}

.login .nonactive {
  color: rgba(255, 255, 255, 0.15);
}

/* =============================================
   Signin Button (alternate style)
   ============================================= */
.login .signin {
  background: linear-gradient(135deg, #1a8cff 0%, #0055cc 100%);
  border-radius: 8px;
  transition: all 0.3s ease;
  color: #ffffff;
}

.login .signin:hover {
  background: linear-gradient(135deg, #3399ff 0%, #0066dd 100%);
  box-shadow: 0 4px 25px -5px rgba(26, 140, 255, 0.4);
}

.login .signin:focus {
  outline: 2px solid #1a8cff;
  outline-offset: 2px;
}

/* =============================================
   Modal Dialog Overrides (Login context)
   ============================================= */
.modal-content {
  background: rgba(20, 20, 20, 0.95);
  border: 1px solid rgba(26, 140, 255, 0.15);
  border-radius: 12px;
}

.modal-header {
  border-bottom-color: rgba(26, 140, 255, 0.1);
}

.modal-footer {
  border-top-color: rgba(26, 140, 255, 0.1);
}

.modal-footer .btn-primary {
  background: linear-gradient(135deg, #1a8cff 0%, #0055cc 100%);
  border: none;
  border-radius: 8px;
  color: #ffffff;
  transition: all 0.3s ease;
}

.modal-footer .btn-primary:focus {
  box-shadow: 0 0 15px rgba(26, 140, 255, 0.3);
}

.modal-footer .btn-default {
  background-color: rgba(87, 87, 86, 0.7);
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #ffffff;
}

/* =============================================
   Logo Blue Glow Animation
   ============================================= */
.logo {
  background-image: url('/linkplus/css/images/logo.png') !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  filter: drop-shadow(0 0 20px rgba(26, 140, 255, 0.4));
  animation: logopulse 3.5s ease-in-out infinite;
}

@keyframes logopulse {
  0%, 100% { filter: drop-shadow(0 0 16px rgba(26, 140, 255, 0.28)); }
  50%       { filter: drop-shadow(0 0 36px rgba(26, 140, 255, 0.6)); }
}

/* =============================================
   Compact Login Form Overrides
   ============================================= */
.login label, .login b { font-size: 13px !important; }
.login input.text { font-size: 14px !important; padding-top: 7px !important; padding-bottom: 7px !important; }
.login .error, .login .error1 { font-size: 11px !important; margin-top: 1px !important; margin-bottom: 1px !important; }
.login::before { height: 110px !important; margin-bottom: 5px !important; }
.login .codeHeader { font-size: 18px !important; margin-bottom: 8px !important; }
.login .codeDiv > label { margin-top: 5px !important; display: block !important; }
.login .codeDiv { padding-top: 0 !important; margin-top: 0 !important; }
