/* =========================================
   User Login Page Request Styles
   ========================================= */

/* 1. Global Reset & Body Background */
body {
  background-color: #040301 !important;
  background-image: none !important;
  color: #fff !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Global Light Source (Top-Right) - Similar to LOGIN text light */
body::after {
  content: '';
  position: fixed;
  width: 200px;
  /* Slightly larger for body corner visibility */
  height: 200px;
  top: -50px;
  right: -50px;
  background: #f3b17d;
  filter: blur(80px);
  /* Increased blur for body scale, referencing the feel */
  opacity: 0.6;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

/* Global Light Source (Top-Right) - Mobile Only */
@media (max-width: 768px) {
  body::before {
    content: '';
    position: fixed;
    width: 297px;
    height: 297px;
    top: -95px;
    left: 50%;
    transform: translateX(20%);
    /* Adjust to be visible on right side of mobile screen */
    background: #f3b17d;
    filter: blur(280.7px);
    opacity: 1;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
  }
}

@media (min-width: 769px) {
  body::before {
    display: none !important;
  }
}

/* 2. Hide Legacy Elements */
.user-header,
.blank60,
.user-login .title,
.layui-hide-xs,
.layui-footer,
.header,
.footer {
  display: none !important;
}

/* 3. Main Container */
.modern-login-container {
  position: relative;
  z-index: 10;
  background: transparent !important;

  /* Mobile Default: Full width with internal padding */
  width: 100%;
  padding: 0 32px;
  box-sizing: border-box;
  margin: 0;
}

@media (min-width: 769px) {
  .modern-login-container {
    width: 600px;
    /* PC Fixed Width */
    padding: 0;
    margin: 0 auto;
  }
}

/* Force User Panel Transparency */
.user-panel,
.user-panel.regester,
.layui-container,
.layui-row,
.layui-col-md12 {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Brand block (Figma 70:2241) */
.login-brand-logo {
  text-align: center;
  margin-bottom: 32px;
}

.login-brand-logo-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 112px;
  margin: 0 auto 20px;
  background: #322619;
  border: 1px solid #8a6f52;
  border-radius: 24px;
}

.login-brand-logo-box img {
  width: 80px;
  height: auto;
  max-height: 72px;
  object-fit: contain;
}

.login-brand-name {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 4px;
  color: #fff;
}

.login-brand-tagline {
  margin: 0 0 24px;
  font-size: 16px;
  letter-spacing: 6px;
  color: rgba(255, 255, 255, 0.9);
}

/* 4. Header Section */
.new-login-header {
  margin-bottom: 40px;
  position: relative;
}

/* Light effect near LOGIN text - All Screens */
.new-login-header::before {
  content: '';
  position: absolute;
  width: 54px;
  height: 54px;
  top: -13px;
  left: -15px;
  background: #f3b17d;
  filter: blur(16.5px);
  opacity: 1;
  border-radius: 50%;
  z-index: -1;
}

.new-login-header h1 {
  font-size: 56px;
  font-weight: 900;
  background: linear-gradient(90deg, #f3b17d 4%, #fef0e7 107%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
  line-height: 1.2;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
}

.new-login-header h2 {
  font-size: 34px;
  color: #ffe2bc;
  margin-top: 5px;
  font-weight: 400;
  opacity: 0.9;
}

/* 5. Form Styles */
.layui-form {
  padding: 0 !important;
}

.layui-form-item {
  margin-bottom: 25px;
  clear: both;
  background: transparent !important;
}

/* Labels */
.login-label {
  display: block;
  font-size: 16px;
  color: #fff;
  margin-bottom: 12px;
  font-weight: 500;
}

/* Inputs */
.layui-input-block,
.layui-input-inline {
  margin-left: 0 !important;
  width: 100% !important;
}

/* Input Fields */
.layui-input,
.layui-select,
.layui-textarea {
  background-color: rgba(50, 38, 25, 0.7) !important;
  border: 1px solid #735d44 !important;
  border-radius: 28px !important;
  height: 56px !important;
  line-height: 56px !important;
  color: #fff !important;
  padding: 0 25px !important;
  font-size: 15px;
  transition: all 0.3s;
  box-shadow: none !important;
  width: 100%;
  box-sizing: border-box;
}

.layui-input:focus {
  border-color: #f3b17d !important;
  background-color: rgba(50, 38, 25, 0.85) !important;
}

.layui-input::placeholder {
  color: #5c6270;
}

/* Buttons */
.layui-btn-fluid {
  background: linear-gradient(90deg, #f3b17d 4%, #fef0e7 106%) !important;
  color: #462a18 !important;
  background-image: none !important;
  height: 56px !important;
  line-height: 56px !important;
  border-radius: 28px !important;
  font-size: 18px !important;
  font-weight: 600;
  margin-top: 10px;
  box-shadow: 0 10px 20px rgba(0, 119, 255, 0.3);
  border: none !important;
}

.layui-btn-fluid:hover {
  opacity: 0.92 !important;
  opacity: 0.95;
}

/* 6. Footer Text */
.login-footer-text {
  text-align: center;
  color: #FFFFFF80;
  font-size: 14px;
  margin-top: 50px;
  width: 100%;
}

/* Hide Legacy Footer */
.user-footer,
.copyright,
.footer {
  display: none !important;
}

/* 7. Hide Extras */
.user-form-etc {
  display: none !important;
}

/* Remove icons from specific input classes if they exist */
.layui-input.account,
.layui-input.password {
  background-image: none !important;
  padding-left: 20px !important;
  /* Reset padding if icons pushed text */
}

/* Ensure no pseudo-elements are creating icons */
.layui-input.account::before,
.layui-input.password::before,
.layui-input.account::after,
.layui-input.password::after {
  display: none !important;
  content: none !important;
}