/* Define variables */
:root {
    --background-color: #375ffa;
    --number-size: 2.5em;
    --pinpad-color: #212121;
}

/* Styles for the popup and buttons */
.commart-login-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    height: 100vh;
    background: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Open Sans', Tahoma, Geneva, sans-serif;
    transition: background-color 1s ease;
}
.commart-login-popup.wrong-bg {
    background-color: crimson !important;
}
.commart-login-popup .popup-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 20em;
    min-width: 320px;
    background: var(--pinpad-color);
    padding: 1em;
    border-radius: .3em;
    box-shadow: 4px 4px 8px rgba(0,0,0,.3);
    color: rgba(255,255,255,.2);
    position: relative;
}

.commart-login-popup .keypad {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: space-around;
    align-content: flex-end;
    margin: 2em 0;
}
.commart-login-popup .keypad button {
    position: relative;
    width: var(--number-size);
    height: var(--number-size);
    margin: calc(var(--number-size) / 5);
    border-radius: 50%;
    border: 2px solid #212121;
    background-color: #725b7200;
    color: #727272;
    font-size: 1.8em;
    text-align: center;
    line-height: var(--number-size);
    font-weight: 400;
    cursor: pointer;
    user-select: none;
    transition: all .5s ease;
}
.commart-login-popup .keypad button:hover {
    color: #ffffff;
}
.commart-login-popup .keypad button:hover:before {
    border: 2px solid #ffffff;
}
.commart-login-popup .keypad button.clear {
    width: var(--number-size);
    height: var(--number-size);
    background-color: #725b7200;
}
.commart-login-popup .number-display {
    font-size: 24px;
    color: white;
    margin-bottom: 10px;
    transition: opacity 0.5s;
    height: 30px; /* Fixed height to ensure space is reserved */
}
.commart-login-popup .number-display.wrong {
    animation: shake 0.5s, grow 0.5s;
    color: crimson;
}
.commart-login-popup .number-display.correct {
    animation: correct 0.5s;
    color: limegreen;
}
.commart-login-popup .number-display.ajax-wait {
    animation: blink 1s infinite;
}
.commart-login-popup .keypad button::after {
    content: "";
    position: absolute;
    left: -2px;
    width: var(--number-size);
    height: var(--number-size);
    border: 2px solid rgba(255,255,255, .1);
    border-radius: 50%;
    transition: all .5s ease;
}
.commart-login-popup .keypad button.grow::after {
    animation: grow .6s ease;
}

.commart-login-popup .message {
    position: absolute;
    bottom: -100px;
    font-size: 1em;
    color: white;
    opacity: 0;
    transition: opacity 1s;
}
.commart-login-popup .message.visible {
    opacity: 1;
}

@keyframes bg-red {
    0%, 100% {
        background: var(--background-color);
    }
    50% {
        background: crimson;
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    20% {
        transform: translateX(-10px);
    }
    40% {
        transform: translateX(10px);
    }
    60% {
        transform: translateX(-5px);
    }
    80% {
        transform: translateX(5px);
    }
}

@keyframes grow {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.5);
    }
}

@keyframes correct {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes blink {
    50% {
        opacity: 0.5;
    }
}


@keyframes fadeOutDown {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(100%);
    }
}

.fadeOutDown {
    animation-name: fadeOutDown;
    animation-duration: 1s;
    animation-fill-mode: forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(100%);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeInUp {
    animation-name: fadeInUp;
    animation-duration: 1s;
    animation-fill-mode: forwards;
}




.rmagic {
    display: none;
}

/* Icons */
.gg-user-add {
  display: block;
  margin-right: -10px;
  transform: scale(var(--ggs, 1));
  box-sizing: border-box;
  width: 20px;
  height: 18px;
  background:
    linear-gradient(to left, currentColor 8px, transparent 0) no-repeat 14px 6px/6px
      2px,
    linear-gradient(to left, currentColor 8px, transparent 0) no-repeat 16px 4px/2px
      6px;
}
.gg-user-add::after,
.gg-user-add::before {
  content: "";
  display: block;
  box-sizing: border-box;
  position: absolute;
  border: 2px solid;
}
.gg-user-add::before {
  width: 8px;
  height: 8px;
  border-radius: 30px;
  top: 0;
  left: 2px;
}
.gg-user-add::after {
  width: 12px;
  height: 9px;
  border-bottom: 0;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  top: 9px;
  left: 1%;
}


.gg-user-list {
  display: block;
  margin-right: -6px;
  transform: scale(var(--ggs, 1));
  box-sizing: border-box;
  width: 20px;
  height: 18px;
  background:
    linear-gradient(to left, currentColor 8px, transparent 0) no-repeat 14px 4px/6px
      2px,
    linear-gradient(to left, currentColor 8px, transparent 0) no-repeat 14px 8px/6px
      2px,
    linear-gradient(to left, currentColor 8px, transparent 0) no-repeat 14px
      12px/6px 2px;
}
.gg-user-list::after,
.gg-user-list::before {
  content: "";
  display: block;
  box-sizing: border-box;
  position: absolute;
  border: 2px solid;
}
.gg-user-list::before {
  width: 8px;
  height: 8px;
  border-radius: 30px;
  top: 0;
  left: 2px;
}
.gg-user-list::after {
  width: 12px;
  height: 9px;
  border-bottom: 0;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  top: 9px;
  left: 2%;
}


.gg-arrow-long-left {
    box-sizing: border-box;
    position: relative;
    display: block;
    transform: scale(var(--ggs, 1));
    border-top: 2px solid transparent;
    border-bottom: 2px solid transparent;
    box-shadow: inset 0 0 0 2px;
    width: 24px;
    height: 6px;
}
.gg-arrow-long-left::after {
    content: "";
    display: block;
    box-sizing: border-box;
    position: absolute;
    width: 6px;
    height: 6px;
    border-bottom: 2px solid;
    border-left: 2px solid;
    transform: rotate(45deg);
    left: 0;
    bottom: -2px;
}

/* پیام‌ها */
.message-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.message {
    text-align: center;
}

#message-1, #message-4 {
    font-size: 20px;
    font-weight: 800;
}

#message-2, #message-3, #message-5, #message-6, #message-7 {
    font-size: 14px;
    font-weight: 100;
}





.message-container {
    position: absolute;
    top: 1px;
    width: 280px;
}
/* افکت‌ها */
.bg-transition {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1b5778;
    display: none;
}
.error-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ff0000;
    display: none;
}

.rmformui * {
    display: none;
    left: 50000px;
}

.register-form {
    display: none;
    left: 50000px;
}

.commart-login-popup .keypad button.swap,
.commart-login-popup .keypad button.clear {
  display: flex;
  align-items: center;
  justify-content: center;
}







.commart-pinpad-copy {
  background-color: #f2f7fa;
  width: 150px;
  height: 30px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  transition-duration: 700ms;
}

.commart-pinpad-copy span:first-child {
  color: #0e418f;
  position: absolute;
  transform: translate(-50%, -50%);
}

.commart-pinpad-copy span:last-child {
  position: absolute;
  color: #b5ccf3;
  opacity: 0;
  transform: translateY(100%) translateX(-50%);
  height: 14px;
  line-height: 13px;
}

.commart-pinpad-copy:focus {
  background-color: #0e418f;
  width: 120px;
  height: 40px;
  transition-delay: 100ms;
  transition-duration: 500ms;
}

.commart-pinpad-copy:focus span:first-child {
  color: #b5ccf3;
  transform: translateX(-50%) translateY(-150%);
  opacity: 0;
  transition-duration: 500ms;
}

.commart-pinpad-copy:focus span:last-child {
  transform: translateX(-50%) translateY(-50%);
  opacity: 1;
  transition-delay: 300ms;
  transition-duration: 500ms;
}

.commart-pinpad-copy:focus:end {
  background-color: #ffffff;
  width: 120px;
  height: 40px;
  transition-duration: 900ms;
}

.centralize {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.description {
  margin-top: 10px;
  color: #b5ccf3;
}




