body {
    font-family: 'Jameel Noori Nastaleeq';
    background-image: url(/Images/bg-registration-form-7.jpg);
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}
        .table {
            display: table;
            width: 100%;
            height: 100%;
        }

        .table-cell {
            display: table-cell;
            vertical-align: middle;
            -moz-transition: all 0.5s;
            -o-transition: all 0.5s;
            -webkit-transition: all 0.5s;
            transition: all 0.5s;text-align:center
        }

        .container {
            position: relative;
            width: 600px;
            margin: 0 auto;
            height: 320px;
            background-color: #999ede;
            top: 0;
            -moz-transition: all 0.5s;
            -o-transition: all 0.5s;
            -webkit-transition: all 0.5s;
            transition: all 0.5s;
        }

        .container .box {
                position: absolute;
                left: 0;
                top: 0;
                width: 100%;
                height: 100%;
                overflow: hidden;
            }

        .container .box:before, .container .box:after {
                    content: " ";
                    position: absolute;
                    left: 152px;
                    top: 50px;
                    background-color: #9297e0;
                    transform: rotateX(52deg) rotateY(15deg) rotateZ(-38deg);
                    width: 300px;
                    height: 285px;
                    -moz-transition: all 0.5s;
                    -o-transition: all 0.5s;
                    -webkit-transition: all 0.5s;
                    transition: all 0.5s;
                }

        .container .box:after {
                    background-color: #a5aae4;
                    top: -10px;
                    left: 80px;
                    width: 320px;
                    height: 180px;
                }

        .container .container-forms {
                position: relative;
            }

        .container .btn {
                cursor: pointer;
                text-align: center;
                margin: 0 auto;
                width: 80px;
                color: #fff;
                /*background-color: #ff73b3;
                    opacity: 0.7;*/
                background-color:#aa0551; 
                -moz-transition: all 0.5s;
                -o-transition: all 0.5s;
                -webkit-transition: all 0.5s;
                transition: all 0.5s;
                -webkit-box-shadow: 0 0 10px 4px #00000096;
                -moz-box-shadow: 0 0 10px 4px #00000096;
                box-shadow: 0 0 10px 4px #00000096;
            }

        .container .btn:hover {
            background-color:#630b0b
                    /*opacity: 1;*/
                }

        .container .btn, .container input   {
                padding: 10px;
            }

        .container input  {
                margin: 10px auto 0px;
                display: block;
                width: 220px;
                -moz-transition: all 0.3s;
                -o-transition: all 0.3s;
                -webkit-transition: all 0.3s;
                transition: all 0.3s;
                direction: rtl;
                font-family: 'Jameel Noori Nastaleeq';
            }

        .container .container-forms .container-info {
                text-align: left;
                font-size: 0;
            }

        .container .container-forms .container-info .info-item {
                    text-align: center;
                    font-size: 16px;
                    width: 300px;
                    height: 320px;
                    display: inline-block;
                    vertical-align: top;
                    color: #fff;
                    opacity: 1;
                    -moz-transition: all 0.3s;
                    -o-transition: all 0.3s;
                    -webkit-transition: all 0.3s;
                    transition: all 0.3s;
                }

        .container .container-forms .container-info .info-item p {
                        font-size: 20px;
                        margin: 20px;
                    }

        .container .container-forms .container-info .info-item .btn {
                        background-color: transparent;
                        border: 1px solid #fff;
                    }

        .container .container-forms .container-info .info-item .table-cell {
                        padding-right: 35px;
                    }

        .container .container-forms .container-info .info-item:nth-child(2) .table-cell {
                        padding-left: 35px;
                        padding-right: 0;
                    }

        .container .container-form {
                overflow: hidden;
                position: absolute;
                left: 30px;
                top: -30px;
                width: 305px;
                height: 380px;
                background-color: #fff;
                /*box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.2);*/
                -moz-transition: all 0.5s;
                -o-transition: all 0.5s;
                -webkit-transition: all 0.5s;
                transition: all 0.5s;box-shadow:0 0 15px 9px #00000096;z-index:1
            }

        .container .container-form:before {
                    content: "خوش آمدید";
                    position: absolute;
                    left: 160px;
                    top: -50px;
                    color: #5356ad;
                    font-size: 30px;
                    opacity: 0;
                    -moz-transition: all 0.5s;
                    -o-transition: all 0.5s;
                    -webkit-transition: all 0.5s;
                    transition: all 0.5s;
                }

        .container .container-form .btn {
                    position: relative;
                    box-shadow: 0 1 10px 1px #ff73b3;
                    margin-top: 30px;border:1px solid #fff
                }

        .container .form-item {
                position: absolute;
                left: 0;
                top: 0;
                width: 100%;
                height: 100%;
                opacity: 1;
                -moz-transition: all 0.5s;
                -o-transition: all 0.5s;
                -webkit-transition: all 0.5s;
                transition: all 0.5s; 
            }

        .container .form-item.sign-up {
                    position: absolute;
                    left: -100%;
                    opacity: 0;
                }

        .container.log-in .box:before {
                position: absolute;
                left: 180px;
                top: 62px;
                height: 265px;
            }

        .container.log-in .box:after {
                top: 22px;
                left: 192px;
                width: 324px;
                height: 220px;
            }

        .container.log-in .container-form {
                left: 265px;
            }

        .container.log-in .container-form .form-item.sign-up {
                    left: 0;
                    opacity: 1;
                }

        .container.log-in .container-form .form-item.log-in {
                    left: -100%;
                    opacity: 0;
                }

        .container.active {
                width: 260px;
                height: 140px;
                margin-top: -70px;
            }

        .container.active .container-form {
                    left: 30px;
                    width: 200px;
                    height: 200px;
                }

        .container.active .container-form:before {
                        content: "خوش آمدید";
                        position: absolute;
                        left: 41px;
                        top: 105px;
                        color: #5356ad;
                        font-size: 50px;
                        opacity: 1;
                    }

        .container.active input, .container.active .btn, .container.active .info-item {
                    display: none;
                    opacity: 0;
                    padding: 0px;
                    margin: 0 auto;
                    height: 0;
                }

        .container.active .form-item {
                    height: 100%;
                }

        .container.active .container-forms .container-info .info-item {
                    height: 0%;
                    opacity: 0;
                }

        li {
            text-align: right;
            list-style-type: none;
            padding: 0 20px;
            color: red;
            font-weight: bold;
        }

        .field-validation-error,.error,.alert {
            float: right;
            padding: 0px 25px 10px;
            color: red;
        }
        .validation-summary-errors {
            margin-top:-50px
        }
        @keyframes move-background {
  from {
    -webkit-transform: translate3d(0px, 0px, 0px);
  }
  to {
    -webkit-transform: translate3d(1000px, 0px, 0px);
  }
}
@-webkit-keyframes move-background {
  from {
    -webkit-transform: translate3d(0px, 0px, 0px);
  }
  to {
    -webkit-transform: translate3d(1000px, 0px, 0px);
  }
}
@-moz-keyframes move-background {
  from {
    -webkit-transform: translate3d(0px, 0px, 0px);
  }
  to {
    -webkit-transform: translate3d(1000px, 0px, 0px);
  }
}
@-webkit-keyframes move-background {
  from {
    -webkit-transform: translate3d(0px, 0px, 0px);
  }
  to {
    -webkit-transform: translate3d(1000px, 0px, 0px);
  }
}
.background-container {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

.stars {
  background: black url(/Images/stars.png) repeat;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: block;
  z-index: 0;
}

.twinkling {
  width: 10000px;
  height: 100%;
  background: transparent url("/Images/twinkling.png") repeat;
  background-size: 1000px 1000px;
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 2;
  -moz-animation: move-background 70s linear infinite;
  -ms-animation: move-background 70s linear infinite;
  -o-animation: move-background 70s linear infinite;
  -webkit-animation: move-background 70s linear infinite;
  animation: move-background 70s linear infinite;
}

.clouds {
  width: 10000px;
  height: 100%;
  background: transparent url("/Images/clouds_repeat.png") repeat;
  background-size: 1000px 1000px;
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 3;
  -moz-animation: move-background 150s linear infinite;
  -ms-animation: move-background 150s linear infinite;
  -o-animation: move-background 150s linear infinite;
  -webkit-animation: move-background 150s linear infinite;
  animation: move-background 150s linear infinite;
}

img.moon {
  height: 70vh;
  width: 70vh;
  position: absolute;
  z-index: 3;
  right: 20px;
} 
/** {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-weight: 300;
}
body { 
  color: white;
  font-weight: 300;
}
body ::-webkit-input-placeholder {
  /*/*/*/*/* WebKit browsers */*/*/*/*/ 
  color: white;
  font-weight: 300;
}
body :-moz-placeholder {
  /*/* Mozilla Firefox 4 to 18 */*/ 
  color: white;
  opacity: 1;
  font-weight: 300;
}
body ::-moz-placeholder {
  /*/* Mozilla Firefox 19+ */*/ 
  color: white;
  opacity: 1;
  font-weight: 300;
}
body :-ms-input-placeholder {
  /*/* Internet Explorer 10+ */*/ 
  color: white;
  font-weight: 300;
}
.wrapper {
  background: #50a3a2;
  background: -webkit-gradient(linear, left top, right bottom, from(#50a3a2), to(#53e3a6));
  background: linear-gradient(to bottom right, #50a3a2 0%, #53e3a6 100%);
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%; 
  margin-top: -200px;
  overflow: hidden;
}
.wrapper.form-success .container h1 {
  -webkit-transform: translateY(85px);
          transform: translateY(85px);
}
.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 80px 0;
  height: 400px;
  text-align: center;
}
.container h1 {
  font-size: 40px;
  -webkit-transition-duration: 1s;
          transition-duration: 1s;
  -webkit-transition-timing-function: ease-in-put;
          transition-timing-function: ease-in-put;
  font-weight: 200;
}
form {
  padding: 20px 0;
  position: relative;
  z-index: 2;
}
form input {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  outline: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background-color: rgba(255, 255, 255, 0.2);
  width: 250px;
  border-radius: 3px;
  padding: 10px 15px;
  margin: 0 auto 10px auto;
  display: block;
  text-align: center;
  font-size: 18px;
  color: white;
  -webkit-transition-duration: 0.25s;
          transition-duration: 0.25s;
  font-weight: 300;
}
form input:hover {
  background-color: rgba(255, 255, 255, 0.4);
}
form input:focus {
  background-color: white;
  width: 300px;
  color: #53e3a6;
}
form button {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  outline: 0;
  background-color: white;
  border: 0;
  padding: 10px 15px;
  color: #53e3a6;
  border-radius: 3px;
  width: 250px;
  cursor: pointer;
  font-size: 18px;
  -webkit-transition-duration: 0.25s;
          transition-duration: 0.25s;
}
form button:hover {
  background-color: #f5f7f9;
}*/
.bg-bubbles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.bg-bubbles li {
  position: absolute;
  list-style: none;
  display: block;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.15);
  bottom: -160px;
  -webkit-animation: square 25s infinite;
  animation: square 25s infinite;
  -webkit-transition-timing-function: linear;
  transition-timing-function: linear;
}
.bg-bubbles li:nth-child(1) {
  left: 10%;
}
.bg-bubbles li:nth-child(2) {
  left: 20%;
  width: 80px;
  height: 80px;
  -webkit-animation-delay: 2s;
          animation-delay: 2s;
  -webkit-animation-duration: 17s;
          animation-duration: 17s;
}
.bg-bubbles li:nth-child(3) {
  left: 25%;
  -webkit-animation-delay: 4s;
          animation-delay: 4s;
}
.bg-bubbles li:nth-child(4) {
  left: 40%;
  width: 60px;
  height: 60px;
  -webkit-animation-duration: 22s;
          animation-duration: 22s;
  background-color: rgba(255, 255, 255, 0.25);
}
.bg-bubbles li:nth-child(5) {
  left: 70%;
}
.bg-bubbles li:nth-child(6) {
  left: 80%;
  width: 120px;
  height: 120px;
  -webkit-animation-delay: 3s;
          animation-delay: 3s;
  background-color: rgba(255, 255, 255, 0.2);
}
.bg-bubbles li:nth-child(7) {
  left: 32%;
  width: 160px;
  height: 160px;
  -webkit-animation-delay: 7s;
          animation-delay: 7s;
}
.bg-bubbles li:nth-child(8) {
  left: 55%;
  width: 20px;
  height: 20px;
  -webkit-animation-delay: 15s;
          animation-delay: 15s;
  -webkit-animation-duration: 40s;
          animation-duration: 40s;
}
.bg-bubbles li:nth-child(9) {
  left: 25%;
  width: 10px;
  height: 10px;
  -webkit-animation-delay: 2s;
          animation-delay: 2s;
  -webkit-animation-duration: 40s;
          animation-duration: 40s;
  background-color: rgba(255, 255, 255, 0.3);
}
.bg-bubbles li:nth-child(10) {
  left: 90%;
  width: 160px;
  height: 160px;
  -webkit-animation-delay: 11s;
          animation-delay: 11s;
}
@-webkit-keyframes square {
  0% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
  100% {
    -webkit-transform: translateY(-700px) rotate(600deg);
            transform: translateY(-700px) rotate(600deg);
  }
}
@keyframes square {
  0% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
  100% {
    -webkit-transform: translateY(-700px) rotate(600deg);
            transform: translateY(-700px) rotate(600deg);
  }
}

/* ==========================================================================
   Responsive Vertical (UP / DOWN Split) Mobile Login Layout
   ========================================================================== */

/* Prevent Body Horizontal Scroll & Fix Zoom Overrides */
html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
    margin: 0;
    padding: 0;
}

@media (min-width: 768px) {
    body {
        zoom: 100% !important;
        transform: none !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Mobile & Tablet Split UP/DOWN Layout (< 768px) */
@media (max-width: 767px) {
    body {
        height: auto !important;
        min-height: 100vh !important;
        overflow-y: auto !important;
        padding: 20px 10px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    /* Card Container - Vertical Flex Column (UP & DOWN) */
    html body div.container,
    html body div.container.log-in {
        position: relative !important;
        width: 100% !important;
        max-width: 380px !important;
        height: auto !important;
        margin: 0 auto !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        margin-top: 0 !important;
        background-color: #999ede !important;
        border-radius: 16px !important;
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4) !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
    }

    /* Hide absolute 3D background shapes on mobile */
    html body div.container .box,
    html body div.container.log-in .box,
    html body div.container .box:before,
    html body div.container .box:after {
        display: none !important;
    }

    /* --------------------------------------------------
       1. UP (Top Section): Logo + Tab Toggle Button
       -------------------------------------------------- */
    html body div.container div.container-forms,
    html body div.container.log-in div.container-forms {
        position: relative !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
    }

    html body div.container div.container-info,
    html body div.container.log-in div.container-info {
        display: block !important;
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        padding: 18px 15px 12px !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }

    html body div.container div.container-info div.info-item,
    html body div.container.log-in div.container-info div.info-item {
        display: none !important;
        width: 100% !important;
        height: auto !important;
        position: relative !important;
        opacity: 1 !important;
        left: 0 !important;
        top: 0 !important;
    }

    /* When Login form active: show second info-item button (تبدیلی خفیہ کوڈ) */
    html body div.container:not(.log-in) div.container-info div.info-item:nth-child(2) {
        display: block !important;
        opacity: 1 !important;
    }

    /* When Password Change active: show first info-item button (سائن ان) */
    html body div.container.log-in div.container-info div.info-item:nth-child(1) {
        display: block !important;
        opacity: 1 !important;
    }

    html body div.container div.container-info img {
        max-height: 55px !important;
        width: auto !important;
        margin-bottom: 10px !important;
    }

    html body div.container div.container-info div.btn {
        display: inline-block !important;
        width: auto !important;
        min-width: 130px !important;
        padding: 8px 16px !important;
        font-size: 15px !important;
        border-radius: 20px !important;
        margin: 5px auto 0 !important;
    }

    /* --------------------------------------------------
       2. DOWN (Bottom Section): White Form Container
       -------------------------------------------------- */
    html body div.container div.container-form,
    html body div.container.log-in div.container-form {
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 340px !important;
        background-color: #ffffff !important;
        border-radius: 0 0 16px 16px !important;
        box-shadow: none !important;
        padding: 20px 15px !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }

    /* Override horizontal left offsets on form items */
    html body div.container div.container-form div.form-item,
    html body div.container.log-in div.container-form div.form-item,
    html body div.container div.container-form div.form-item.log-in,
    html body div.container.log-in div.container-form div.form-item.log-in,
    html body div.container div.container-form div.form-item.sign-up,
    html body div.container.log-in div.container-form div.form-item.sign-up {
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: auto !important;
        padding: 0 !important;
    }

    /* Active Form Visibility: Login State */
    html body div.container:not(.log-in) div.container-form div.form-item.log-in {
        display: block !important;
        opacity: 1 !important;
        left: 0 !important;
    }

    html body div.container:not(.log-in) div.container-form div.form-item.sign-up {
        display: none !important;
        opacity: 0 !important;
        left: 0 !important;
    }

    /* Active Form Visibility: Change Password State (.log-in) */
    html body div.container.log-in div.container-form div.form-item.log-in {
        display: none !important;
        opacity: 0 !important;
        left: 0 !important;
    }

    html body div.container.log-in div.container-form div.form-item.sign-up {
        display: block !important;
        opacity: 1 !important;
        left: 0 !important;
    }

    /* Tables inside form items */
    html body div.container div.form-item div.table,
    html body div.container div.form-item div.table-cell {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        padding: 0 !important;
    }

    /* Display centered logo image vertically above form controls */
    html body div.container div.container-form div.form-item img {
        display: block !important;
        max-width: 85% !important;
        height: auto !important;
        margin: 0 auto 15px auto !important;
    }

    /* Full Width Touch Inputs */
    html body div.container input[type="text"],
    html body div.container input[type="password"],
    html body div.container input.form-control,
    html body div.container div.input-group {
        width: 100% !important;
        max-width: 100% !important;
        margin: 10px 0 !important;
        font-size: 15px !important;
        padding: 10px 12px !important;
        box-sizing: border-box !important;
        border: 1px solid #ccc !important;
        border-radius: 6px !important;
        text-align: center !important;
    }

    html body div.container .btn.btna,
    html body div.container input.submit,
    html body div.container .UpdatePassword {
        width: 100% !important;
        max-width: 200px !important;
        margin: 15px auto 5px !important;
        padding: 10px 18px !important;
        border-radius: 6px !important;
        font-size: 16px !important;
        display: block !important;
        text-align: center !important;
    }
}