/* =========================
   DDR2 AUTH UI - CLEAN CSS
   ========================= */

/* Overlay */
.login-overlay{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
  z-index:99999;
  background:rgba(0,0,0,.38);
  backdrop-filter:blur(4px);
}

.login-overlay.open{
  display:flex;
}

/* Modal */
.login-box{
  width:min(92vw,780px);
  max-width:780px;
  background:#f7f6f3;
  color:#2d1a05;
  border:1.5px solid rgba(236,191,116,.85);
  border-radius:42px;
  box-shadow:0 28px 70px rgba(0,0,0,.14);
  overflow:hidden;
  position:relative;
}

.login-box *{
  box-sizing:border-box;
}

/* Header */
.login-box-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:20px 26px 14px;
  border-bottom:1px solid rgba(221,200,165,.75);
}

.login-brand{
  display:flex;
  align-items:center;
  min-width:86px;
}

.login-brand img{
  width:60px;
  height:auto;
  display:block;
}

.login-title-wrap{
  flex:1;
  display:flex;
  justify-content:center;
}

.login-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:9px 18px;
  border:1.5px solid rgba(241,190,110,.7);
  border-radius:999px;
  background:transparent;
  color:#f29b1d;
  font-family:'Unbounded', cursive;
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  line-height:1;
}

/* Close button */
.login-close{
  width:48px;
  height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:none;
  border-radius:50%;
  background:#e8e4de;
  color:#8c8781;
  font-size:24px;
  line-height:1;
  cursor:pointer;
  flex-shrink:0;
  transition:color .2s ease, transform .2s ease, background .2s ease;
}

.login-close:hover{
  color:#f29b1d;
  background:#e0dbd4;
  transform:scale(1.08);
}

.login-close:active{
  transform:scale(.96);
}

/* Body */
.login-box-inner{
  padding:20px 26px 24px;
}

.login-box h3{
  display:none;
}

/* Messages */
.login-box .ferr{
  display:none;
  margin-bottom:16px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(231,76,60,.18);
  background:rgba(231,76,60,.08);
  color:#c85f54;
  font-size:14px;
  font-weight:600;
}

.login-box .ferr.show{
  display:block;
}

.login-box #fgtOk{
  display:none;
  margin-bottom:14px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(0,184,148,.18);
  background:rgba(0,184,148,.08);
  color:#00a97f;
  font-size:14px;
  font-weight:700;
}

/* Fields */
.login-box .field{
  margin-bottom:18px;
}

.login-box label{
  display:block;
  margin-bottom:10px;
  color:#a3a09c;
  font-family:'Unbounded', cursive;
  font-size:11px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.login-box input{
  all:unset;
  display:block;
  width:100%;
  height:64px;
  padding:0 18px;
  border-radius:18px;
  border:2px solid #d8d0c4;
  background:#ece9e4;
  color:#777068;
  font-family:'Outfit', sans-serif;
  font-size:16px;
  font-weight:400;
  box-sizing:border-box;
  transition:border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.login-box input::placeholder{
  color:#c4c0ba;
}

.login-box input:focus{
  background:#f1eee9;
  border-color:#f0ad38;
  box-shadow:0 0 0 4px rgba(251,161,34,.07);
}

/* CTA button */
.login-box .sub-btn{
  all:unset;
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:58px;
  border-radius:999px;
  cursor:pointer;
  background:linear-gradient(90deg,#f8a11f 0%, #f5c25a 100%);
  color:#111;
  font-family:'Unbounded', cursive;
  font-size:15px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  box-shadow:0 10px 26px rgba(246,184,70,.18);
  position:relative;
  overflow:hidden;
  transition:transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

.login-box .sub-btn:hover{
  transform:translateY(-1px) scale(1.01);
  box-shadow:0 16px 36px rgba(246,184,70,.3);
  filter:saturate(1.03);
}

.login-box .sub-btn:active{
  transform:scale(.99);
}

.login-box .sub-btn:disabled{
  opacity:.72;
  cursor:not-allowed;
  transform:none;
}

.login-box .sub-btn::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:999px;
  background:linear-gradient(
    120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.3) 50%,
    rgba(255,255,255,0) 100%
  );
  opacity:0;
  transform:translateX(-100%);
  transition:all .5s ease;
}

.login-box .sub-btn:hover::after{
  opacity:1;
  transform:translateX(100%);
}

/* Links */
.login-box #loginLinks{
  text-align:center;
  margin-top:14px;
}

.login-box #forgotWrap{
  margin-top:18px;
}

.login-box #loginLinks a,
.login-box #forgotWrap a{
  color:#9f9c98;
  text-decoration:none;
  font-family:'Outfit', sans-serif;
  font-size:14px;
  font-weight:800;
}

.login-box #loginLinks a:hover,
.login-box #forgotWrap a:hover{
  color:#7c7872;
}

.login-box .login-register-line{
  margin-top:14px;
  text-align:center;
  color:#a9a6a2;
  font-size:14px;
  font-weight:500;
}

.login-box .login-register-line a{
  color:#f29b1d;
  text-decoration:none;
  font-weight:800;
}

.login-box .login-register-line a:hover{
  text-decoration:underline;
}

/* Navbar login button */
.nav-login-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:10px 18px;
  border-radius:999px;
  border:1.5px solid rgba(255,255,255,.26);
  background:transparent;
  color:#fff;
  font-family:'Unbounded', cursive;
  font-size:11px;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
  cursor:pointer;
  transition:all .2s ease;
}

.nav-login-btn:hover{
  border-color:#f5bc55;
  color:#f5bc55;
}

/* =========================
   USER BUBBLE - FINAL
   ========================= */

#userBubble,
#ddr2-bubble{
  position:fixed !important;
  left:18px !important;
  bottom:18px !important;
  z-index:99999 !important;
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
  background:#fff !important;
  color:#2d1a05 !important;
  border:2px solid rgba(255,165,0,.3) !important;
  border-radius:999px !important;
  padding:10px 14px 10px 10px !important;
  box-shadow:0 12px 40px rgba(0,0,0,.18) !important;
}

#userBubble .ub-avatar,
#ddr2-bubble .ub-avatar{
  width:38px !important;
  height:38px !important;
  border-radius:50% !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  font-weight:700 !important;
  background:#FBA122 !important;
  color:#111 !important;
}

#userBubble .ub-name,
#ddr2-bubble .ub-name{
  font-size:13px !important;
  font-weight:700 !important;
  line-height:1.1 !important;
  color:#2d1a05 !important;
}

#userBubble .ub-plan,
#ddr2-bubble .ub-plan{
  margin-top:2px !important;
  font-size:11px !important;
  color:#f29b1d !important;
  opacity:1 !important;
}

#userBubble .ub-logout,
#ddr2-bubble .ub-logout{
  margin-left:4px !important;
  background:none !important;
  border:none !important;
  color:#b7b2ac !important;
  font-size:20px !important;
  line-height:1 !important;
  cursor:pointer !important;
  transition:color .2s ease, transform .2s ease !important;
}

#userBubble .ub-logout:hover,
#ddr2-bubble .ub-logout:hover{
  color:#f29b1d !important;
  transform:scale(1.1) !important;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 900px){
  .login-overlay{
    padding:16px;
  }

  .login-box{
    width:min(94vw,760px);
    border-radius:34px;
  }

  .login-box-top{
    padding:18px 18px 14px;
  }

  .login-box-inner{
    padding:18px 18px 22px;
  }

  .login-brand img{
    width:54px;
  }

  .login-pill{
    font-size:11px;
    padding:8px 14px;
  }

  .login-close{
    width:44px;
    height:44px;
    font-size:22px;
  }

  .login-box input{
    height:58px;
    font-size:15px;
    border-radius:16px;
    padding:0 16px;
  }

  .login-box .sub-btn{
    height:54px;
    font-size:14px;
  }

  .login-box .login-register-line,
  .login-box #loginLinks a,
  .login-box #forgotWrap a{
    font-size:13px;
  }

  #userBubble,
  #ddr2-bubble{
    left:14px !important;
    bottom:14px !important;
    padding:9px 12px 9px 9px !important;
  }
}