


:root {
  --accent: #e30613;
  --bg-panel: #fff;
  --muted: #6c757d;
  --divider: #ddd;
  --shadow-heavy: 0 12px 32px rgba(0,0,0,.55);
  --shadow-subtle: 0 6px 18px rgba(0,0,0,0.06);
}


html, body {
  background: transparent !important;
  height: 100% !important;
  margin: 0 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  font-family: 'Inter', sans-serif;
}


@media (max-width: 900px) and (orientation: landscape),
       (max-height: 450px) {
  html, body { display:block !important; align-items: initial !important; justify-content: initial !important; overflow-y:auto !important; }
  .auth-right { padding: 1.2rem 1.2rem 1.2rem; min-height:auto; }
  .btn, .btn-outline { padding: .5rem .85rem; font-size: .85rem; }
  .auth-mobile-topbar{ margin-left: 20px; top: 4px; height: 44px; }
  .auth-mobile-lang{ bottom: 6px; transform: scale(.95); transform-origin: left bottom; }
}


.auth-box {
  width: 860px;               
  max-width: 100%;
  height: 725px;               
  overflow: hidden;            
  border-radius: 25px;
  background: var(--bg-panel);
  box-shadow: var(--shadow-heavy);
  border: 0;                   
  display: flex;
  flex-wrap: nowrap;           
  z-index: 18000;
}


.auth-left {
  
  flex: 0 0 52%;
  min-width: 280px;
  color: #fff;
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  flex-shrink: 0;              
  
}

.auth-left h2 {
  font-weight: 700;
  font-size: 2.5rem;
  margin-top: 405px;                 
  margin-bottom: 1rem;
  letter-spacing: -0.09rem;
  line-height: 1;
  margin-right: 2px;
}

.auth-left p {
  font-size: 0.85rem;
  line-height: 1.55;
  max-width: 340px;
}


.auth-right {
  
  flex: 0 0 48%;
  min-width: 320px;
  padding: 3rem;
  position: relative;
  
  overflow-y: auto;            
  scrollbar-gutter: stable both-edges; 
  font-size: 0.85em;           
}


.auth-logotype {
  text-align: left;
  margin-bottom: 0.6rem;
  margin-top: -12px;
}
.auth-logotype img {
  max-width: 160px;
  width: auto;
  height: auto;
  display: inline-block;
}


.auth-mobile-topbar {
  position: relative; 
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: flex-start; 
  z-index: 1;
  pointer-events: auto;
  margin-left: auto;
}
.auth-mobile-topbar .logo { pointer-events: auto; transform: scale(1.5);}
.auth-mobile-topbar img { height: 25px; width: auto; display:block; margin-left: 20px; margin-top: -30px; }




.auth-mobile-lang {
  position: relative; 
  left: auto;
  bottom: auto;
  z-index: 1;
  background: rgba(255,255,255,0.98);
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: var(--shadow-subtle);
  padding: 6px 10px;
  width: max-content;
}
.auth-mobile-lang select {
  font-size: 14px;
  color: #444;
  border: 0;
  background: transparent;
  outline: none;
}



@media (width: 912px) and (height: 1368px) and (orientation: portrait),
       (device-width: 912px) and (device-height: 1368px) and (orientation: portrait) {
  .auth-mobile-topbar,
  .auth-mobile-lang { display: none !important;  }
}
@media (min-width: 900px) and (max-width: 924px)
  and (min-height: 1350px) and (max-height: 1386px)
  and (orientation: portrait) {
  .auth-mobile-topbar,
  .auth-mobile-lang { display: none !important; }
}

.sp7-portrait .auth-mobile-topbar,
.sp7-portrait .auth-mobile-lang { display: none !important; }


.auth-close {
  position: absolute;
  top: 18px;
  right: 18px;
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  opacity: .6;
  cursor: pointer;
}
.auth-close:hover { opacity: 1; }


.mb-3 { margin-bottom: 0.55rem !important; }
.mb-4 { margin-bottom: 0.85rem !important; }


.form-label { font-size: .85rem; color: var(--muted); display: block; margin-bottom: .3rem; }
.form-control {
  border: 0;
  border-bottom: 1px solid #ced4da;
  border-radius: 0;
  padding: 0.45rem 0.65rem;
  font-size: 0.95rem;
}
.form-control:focus {
  border-color: var(--accent);
  box-shadow: none;
}


.eye-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  width: 18px;
  height: 18px;
}


.btn {
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
}
.btn-primary {
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  font-weight: 600;
  color: #fff;
}
.btn-primary:hover {
  background: #090909;
  border-color: var(--accent);
}
.btn-outline {
  border: 1px solid #ddd;
  border-radius: 999px;
  font-weight: 600;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
}
.btn-outline:hover { background: #f8f9fa; }


.divider {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--divider);
}
.divider span {
  margin: 0 .75rem;
  font-size: .8rem;
  color: #666;
}


.pw-strength-bar {
  width: 100%;
  height: 6px;
  background: #e9ecef;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 4px;
}
.pw-strength-bar #pwStrengthFill {
  width: 0;
  height: 100%;
  background: linear-gradient(to right, #ff4d4f, #ffa940, #52c41a);
  transition: width 0.3s ease, opacity 0.3s ease;
}
.strength-static-label {
  font-size: 0.875rem;
  color: #333;
  display: block;
  margin-bottom: 4px;
}
.strength-label { font-size: smaller; color: gray; margin-left: 8px; }


.auth-right .strength-container { margin-bottom: 0.25rem; }
#signupTermsNote { margin-top: 0px; font-size: smaller !important; color: gray; }
.auth-right .divider span { font-size: 0.9em; }



.auth-right.has-inline-alert {
  padding-top: 72px; 
}

.auth-right .gv-inline-alert,
.auth-right #signupInfoMessage {
  position: absolute;
  top: 18px;
  left: 24px;
  right: 24px;
  z-index: 60;
  margin: 0;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

@media (max-width: 900px) {
  
  .auth-right.has-inline-alert { padding-top: 2.5rem; }
  .auth-right .gv-inline-alert,
  .auth-right #signupInfoMessage { position: relative; top: auto; left: auto; right: auto; box-shadow: none; margin-bottom: .5rem; }
}



.gv-inline-alert {
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.gv-inline-alert.fade-out {
  opacity: 0;
  transform: translateY(-36px);
}


#gv-toast-area {
  position: fixed;
  pointer-events: none;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 99999;
}
.gv-toast {
  pointer-events: auto;
  position: fixed;
  background: #fff3cd;
  border: 1px solid #ffe08a;
  color: #6b4f00;
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  transition: opacity .35s ease, transform .35s ease;
  opacity: 1;
}
.gv-toast.fade-out { opacity: 0; transform: translateY(-6px); }

.auth-right #signupInfoMessage + .gv-inline-alert,
.auth-right .gv-inline-alert + #signupInfoMessage,
.auth-right .gv-inline-alert:where(:not(#signupInfoMessage)) {
  display: none !important;
}
.auth-right .gv-inline-alert {
  font-size: 0.65rem !important;
  margin: 0.4rem 0 !important;
  padding: 0.1rem 0.1rem 0.1rem 0.6rem !important;
}


.embedded-modal .auth-box {
  box-shadow: none !important;
  border: 0 !important;
  background: transparent !important;
}
.embedded-modal .auth-right {
  background: var(--bg-panel);
  border-radius: 0 25px 25px 0;
  overflow: hidden;
}
.embedded-modal .auth-left { border-radius: 25px 0 0 25px; }


@media (max-width: 900px) {
  .auth-left { display: none; }
  .auth-box {
    width: 100%;
    max-width: 100%;
    height: auto;           
    box-shadow: none !important;
    border-radius: 0 !important;
    background: var(--bg-panel);
    display: block;         
  }
  .auth-right {
    padding: 1.2rem 2.2rem 2.2rem; 
    min-height: 20vh;
    box-shadow: none;
    border-radius: 0;
  }
  .auth-logotype { display:none; }
  .mb-3 { margin-bottom: 0.2rem !important; }
}


@media screen and (width:768px) and (height:1024px) and (orientation:portrait),
       screen and (min-width:740px) and (max-width:820px) and (orientation:portrait) {
  html, body { display:flex !important; align-items:center !important; justify-content:center !important; min-height:100vh; }
  .auth-box {
    width: 620px;          
    max-width: calc(100% - 64px);
    height: auto;
    border-radius: 22px !important;
    box-shadow: none !important;
    border: 1px solid rgba(0,0,0,0.12) !important;
    display: block;        
  }
  .auth-right {
    min-height: auto !important;
    padding: 2rem 2.2rem 2.2rem !important;
    border-radius: 22px !important;
  }
}


.auth-right .mb-3 { margin-bottom: 0.55rem !important; }
.auth-right .mb-4 { margin-bottom: 0.85rem !important; }
.auth-right .form-label { font-size: 0.85rem; margin-bottom: 0.3rem; }
.auth-right .form-control { padding: 0.45rem 0.65rem; font-size: 0.95rem; }
.auth-right .btn, .auth-right .btn-outline { padding: 0.55rem 1rem; font-size: 0.9rem; }





.auth-right { position: relative; } 

:root {
  --alert-top-offset: 56px; 
  --alert-side-gap: 24px;
}


.auth-right .gv-inline-alert {
  position: absolute !important;
  top: var(--alert-top-offset);
  left: var(--alert-side-gap);
  right: var(--alert-side-gap);
  z-index: 12000;              
  margin: 0 !important;
  width: auto;
  box-sizing: border-box;
  border-radius: 8px;
  padding: 12px 16px !important;
  font-size: 0.9rem !important;
  line-height: 1.2;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  background: #fff7d6;         
  border: 1px solid rgba(0,0,0,0.06);
  color: #444;
  transition: transform .18s ease, opacity .18s ease;
  transform-origin: top right;
}


.auth-right .gv-inline-alert { font-size: 0.9rem !important; }


.auth-right .gv-inline-alert + .gv-inline-alert {
  top: calc(var(--alert-top-offset) + 56px); 
}


@media (max-width: 900px) {
  .auth-right .gv-inline-alert {
    position: static !important;
    margin: 0 0 0.85rem 0 !important;
    width: auto;
    box-shadow: none;
    background: #fffbe6;
  }
}


#gv-toast-area {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 999999;
}

.gv-toast {
  position: fixed;
  background: #FFF3CD;
  color: #8E7631;
  border-color: #FDE6A6;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  max-width: 320px;
  word-wrap: break-word;
  pointer-events: auto;
  transform: translateY(-10px);
  opacity: 0;
  animation: toast-slide-in 0.3s ease-out forwards;
  z-index: 999999;
}

.gv-toast.fade-out {
  animation: toast-slide-out 0.3s ease-in forwards;
}

@keyframes toast-slide-in {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes toast-slide-out {
  to {
    transform: translateY(-10px);
    opacity: 0;
  }
}




@media screen and (width:360px) and (height:740px) and (orientation:portrait),
       screen and (device-width:360px) and (device-height:740px) and (orientation:portrait) {
  html, body { display:block !important; align-items:flex-start !important; justify-content:flex-start !important; }
  .auth-box { width:100%; height:auto; border-radius:0; box-shadow:none; }
  .auth-right { padding:1.1rem 1.2rem 1.8rem; min-height:auto; font-size:0.82em; }
  .auth-right h1, .auth-right h2 { font-size:1.35rem; line-height:1.18; margin:0.4rem 0 0.9rem; letter-spacing:-0.02em; }
  .auth-right .form-control { padding:0.4rem 0.55rem; font-size:0.9rem; }
  .auth-right .btn-primary { padding:0.65rem 1rem; font-size:0.85rem; }
  .auth-right .btn-outline, .auth-right .btn { padding:0.55rem 0.9rem; font-size:0.82rem; }
  .divider { margin:1.1rem 0; }
  .pw-strength-bar { height:5px; }
  .auth-right .gv-inline-alert { position:static !important; margin:0 0 0.6rem 0 !important; }
  .auth-mobile-topbar { transform:scale(0.8); transform-origin: left top; margin-left:0; top:15px; height:40px; }
  
  .auth-mobile-lang { padding:4px 8px; }
}


@media screen and (width:375px) and (height:667px) and (orientation:portrait),
       screen and (device-width:375px) and (device-height:667px) and (orientation:portrait) {
  html, body { display:block !important; align-items:flex-start !important; justify-content:flex-start !important; overflow-y:auto !important; }
  .auth-box { width:100%; height:auto; border-radius:0; box-shadow:none; }
  .auth-right { padding:1rem 1.2rem 1.6rem; min-height:auto; font-size:0.80em; }
  .auth-right h1, .auth-right h2 { font-size:1.28rem; line-height:1.15; margin:0.35rem 0 0.8rem; letter-spacing:-0.01em; }
  .auth-right .form-control { padding:0.40rem 0.55rem; font-size:0.90rem; }
  .auth-right .btn-primary { padding:0.60rem 0.90rem; font-size:0.85rem; }
  .auth-right .btn, .auth-right .btn-outline { padding:0.50rem 0.90rem; font-size:0.82rem; }
  .divider { margin:1rem 0; }
  .auth-right .gv-inline-alert { position:static !important; margin:0 0 0.6rem 0 !important; }
  .auth-mobile-topbar { transform:scale(0.8); transform-origin: left top; margin-left:0; top:15px; height:40px; }
  .auth-mobile-lang { transform: scale(0.92); transform-origin: left bottom; }
}


@media screen and (width:540px) and (height:720px) and (orientation:portrait),
       screen and (device-width:540px) and (device-height:720px) and (orientation:portrait) {
  html, body { display:block !important; align-items:flex-start !important; justify-content:flex-start !important; overflow-y:auto !important; }
  .auth-box { width:100%; height:auto; max-width:100%; border-radius:16px; box-shadow:none; }
  .auth-right { padding:1.2rem 1.4rem 1.8rem; min-height:auto; font-size:0.86em; }
  .auth-right h1, .auth-right h2 { font-size:1.4rem; line-height:1.18; margin:0.4rem 0 1rem; }
  .auth-right .form-control { padding:0.44rem 0.6rem; font-size:0.94rem; }
  .auth-right .btn-primary { padding:0.65rem 1rem; font-size:0.9rem; }
  .auth-right .btn, .auth-right .btn-outline { padding:0.55rem 1rem; font-size:0.86rem; }
  .divider { margin:1.1rem 0; }
  .auth-right .gv-inline-alert { position:static !important; margin:0 0 0.6rem 0 !important; }
}


@media screen and (width:853px) and (height:1280px) and (orientation:portrait),
       screen and (device-width:853px) and (device-height:1280px) and (orientation:portrait) {
  html, body { display:flex !important; align-items:center !important; justify-content:center !important; min-height:100vh; }
  .auth-box {
    width: 640px;
    max-width: calc(100% - 80px);
    height: auto;
    border-radius: 22px !important;
    box-shadow: none !important;
    border: 1px solid rgba(0,0,0,0.12) !important;
    display: block;
  }
  .auth-right { min-height:auto !important; padding:2.2rem 2.4rem 2.4rem !important; }
}



.sp7-portrait .auth-box {
  border-radius: 40px !important;           
}
.sp7-portrait.embedded-modal .auth-box {    
  border-radius: 40px !important;
}
.sp7-portrait .auth-left {                  
  border-radius: 40px 0 0 40px !important;
}
.sp7-portrait .auth-right {                 
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sp7-portrait .auth-right.has-inline-alert {
  justify-content: flex-start;
}


