/* Invivo Style Patch - Login Page Visual Overrides */
/* Amber/Orange Color Scheme */

/* =============================================
   Body Background
   ============================================= */
body {
  background: radial-gradient(ellipse 80% 50% at 50% -5%, rgba(245, 166, 35, 0.08) 0%, transparent 65%), #0a0a0a;
}

/* =============================================
   Login Logo Pseudo-element
   ============================================= */
.login::before {
  content: '';
  display: block;
  width: 100%;
  height: 140px;
  background: url('/web/images/logo.png') no-repeat center center;
  background-size: contain;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 20px rgba(245,166,35,0.4));
}

.mainClassBg .login .logo {
  display: none;
}

/* =============================================
   Login Container
   ============================================= */
.login {
  background: rgba(20, 20, 20, 0.9);
  box-shadow: 0 0 80px rgba(245, 166, 35, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  width: 70vw;
  max-width: 900px;
  padding: 40px 60px;
  min-height: auto;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* =============================================
   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(245, 166, 35, 0.5) !important;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 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);
}

.login .codeDiv .text:focus {
  border: 1px solid rgba(245, 166, 35, 0.5);
  border-radius: 8px;
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 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, #f5a623 0%, #f5d020 100%);
  border: none;
  border-radius: 12px;
  color: #0a0a0a;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  cursor: pointer;
}

#btnLogin:hover {
  background: linear-gradient(135deg, #f5b033 0%, #f5d530 100%);
}

#btnLogin:focus {
  background: linear-gradient(135deg, #f5a623 0%, #f5d020 100%);
  box-shadow: 0 8px 30px rgba(245, 166, 35, 0.5);
  outline: 0;
  color: #0a0a0a;
}

/* =============================================
   Buttons - Register (#btnRegister)
   ============================================= */
#btnRegister {
  background: transparent !important;
  background-color: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !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(245, 166, 35, 0.3);
  color: #aaa;
}

#btnRegister:focus {
  border-color: rgba(245, 166, 35, 0.45);
  color: #f5a623;
  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(245, 166, 35, 0.15);
  border-color: rgba(245, 166, 35, 0.45);
  box-shadow: 0 0 20px rgba(245, 166, 35, 0.2);
  outline: 0;
  color: #f5a623;
}

.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(245, 166, 35, 0.15) !important;
  border-color: rgba(245, 166, 35, 0.45);
  box-shadow: 0 0 20px rgba(245, 166, 35, 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: #f5a623;
}

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

.footerLink:focus,
.footerLink:hover {
  color: #f5a623;
}

/* =============================================
   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: #f5a623;
}

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

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

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

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

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

.login .signin:hover {
  background: linear-gradient(135deg, #f5b033 0%, #f5d530 100%);
  box-shadow: 0 4px 25px -5px rgba(245, 166, 35, 0.4);
}

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

/* =============================================
   Modal Dialog Overrides (Login context only)
   ============================================= */
.login .modal-content {
  background: rgba(20, 20, 20, 0.95);
  border: 1px solid rgba(245, 166, 35, 0.15);
  border-radius: 12px;
}

.login .modal-header {
  border-bottom-color: rgba(245, 166, 35, 0.1);
}

.login .modal-footer {
  border-top-color: rgba(245, 166, 35, 0.1);
}

.login .modal-footer .btn-primary {
  background: linear-gradient(135deg, #f5a623 0%, #f5d020 100%);
  border: none;
  border-radius: 8px;
  color: #0a0a0a;
  transition: all 0.3s ease;
}

.login .modal-footer .btn-primary:focus {
  box-shadow: 0 0 15px rgba(245, 166, 35, 0.3);
}

.login .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 Amber Glow Animation
   ============================================= */
.logo {
  background-image: url('/web/images/logo.png') !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  filter: drop-shadow(0 0 20px rgba(245,166,35,0.4));
  animation: logopulse 3.5s ease-in-out infinite;
}

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