body {
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #27ef2f;
  text-align: left;
}

/*Password Eye*/
.password-container {
    position: relative;
}

.btn-show-hide {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    cursor: pointer;
}

.btn-show-hide i {
    font-size: 18px;
    color: #999;
}

/*Alertify*/
/* alertify-custom.css */
.alertify .ajs-message {
    text-align: center;
}

.alertify .ajs-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Adjust as necessary */
}

.alertify .ajs-message.ajs-error,
.alertify .ajs-message.ajs-success {
    margin: 0 auto;
}


/*End Password Eye*/



/* Hide the spinner arrows in Webkit browsers (Chrome, Safari) */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Hide the spinner arrows in Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}
.form-group.reg {
  margin-top: 13px;
}

.btn.btn-primary.reg {
  color: #fff;
  background-color: #02214e;
  border-color: #0d6efd;
  width: 229px;
  height: 53px;
  margin: auto;
    margin-top: auto;
  display: block;
  margin-top: 13px;
}


.screenerrors {
  display: none;
}


.form-control:focus {
  color: #495057;
  background-color: #fff;
  border-color: #00db2c;
  outline: 0;
  box-shadow: none;
}

.form-control {
  display: block;
  width: 100%;
  height: calc(1.5em + 1.75rem + 4px);
  padding: .375rem .75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #057d56;
  border-radius: .25rem;
  transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

@media (min-width: 1200px) {
  .container, .container-lg, .container-md, .container-sm, .container-xl {
    max-width: 578px;
    margin-top: 10%;
  }
}

/*This will remove after testing*/
a.testlinks {
    text-decoration: none;
    color: white;
}
/*End Testing code*/

@keyframes slideInFromLeft {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(0);
  }
}

.login-forms {
    margin-left: 35%;
    margin-right: 35%;
    margin-top: 59px;
    background: linear-gradient(90deg, rgb(96 97 115) 0%, rgb(3 3 65 / 76%) 35%, rgb(11 15 92) 100%);
    border-radius: 16px;
    animation: 2s ease-out 0s 1 slideInFromLeft;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
     border: none;
    border-radius: 0.25rem;
}
img.card-img-top {
    width: 150px;
    height: 150px;
     padding: 20px;
    margin-left: 31%;
    border-radius: 72px;
}

form.loginform {
    padding-left: 17px;
    padding-right: 17px;
}
.d-flex.justify-content-center {
    margin-top: 12px;
}
input#loginPassword {
    margin-top: 2px;
}
.form-control:focus {
    color: #1d5b01;
  background-color: #fff;
  border-color: #0e9f17;
  outline: 0;
  box-shadow: none;
}
.btn-primary {
    color: #fff;
  background-color: #02214e;
  border-color: #0d6efd;
  width: 127px;
  height: 53px;
  margin: auto;
  display: block;
}
.btn-primary:hover {
    color: #fff;
    background-color: #861495;
    border-color: #09c944;
}
.btn-check:focus+.btn-primary, .btn-primary:focus {
    color: #fff;
    background-color: #040a56;
    border-color: #02b613;
    box-shadow: none;
}
.btn-check:active+.btn-primary, .btn-check:checked+.btn-primary, .btn-primary.active, .btn-primary:active, .show>.btn-primary.dropdown-toggle {
    color: #fff;
    background-color: #01204c;
    border-color: #0abe74;
}
.btn-check:active+.btn-primary:focus, .btn-check:checked+.btn-primary:focus, .btn-primary.active:focus, .btn-primary:active:focus, .show>.btn-primary.dropdown-toggle:focus {
    box-shadow: none;
}
.login-forms:hover {
    background: linear-gradient(90deg, rgb(0 4 75) 0%, rgb(2 2 71 / 76%) 35%, rgb(72 74 108) 100%);
}




/*Mobile Screen size*/
@media only screen and (max-width: 600px) {

    .login-forms {
    margin-left: 20%;
    margin-right: 20%;
    margin-top: 59px;
}

}
/*end mobile screen 600 px*/

/*Add Mobile screen restriction*/
@media only screen and (min-device-width: 100px) and (max-device-width: px) {
    .login-forms {
      display: none !important;
    }

    .screenerrors {
        display: block;
        color: red;
        padding-left: 10px;
        padding-top: 10px;
        }
        .card-img {
         width: 24%;
        }
    }

/* end Mobile screen restriction   */

.register-login {
  text-decoration: none;
  color: white;
  float: right;
  margin-right: 20px;
}
.register-login:hover {
  color: #5bff75;
}

 /* Ensure the body takes full height */
        html, body {
            height: 100%;
            margin: 0;
            padding: 0;
        }

        /* Body styles */
        body {
            background: linear-gradient(135deg, #25273a, #25273a);
            background-size: cover;
            background-repeat: no-repeat;
            background-attachment: fixed;
            color: white;
            font-family: 'Arial', sans-serif;
            display: flex;
            justify-content: center;
            align-items: center;
            overflow-x: hidden; /* Prevent horizontal scrolling */
            overflow-y: auto; /* Allow vertical scrolling */
        }

        /* Main container for the form */
        .container {
            max-width: 621px;
            width: 100%;
            background-color: white;
            padding: 40px 30px;
            border-radius: 12px;
            box-shadow: 0 2px 20px rgba(6, 134, 20, 0.5);
            opacity: 0;
            transform: translateY(20px);
            animation: fadeInUp 0.8s forwards;
            color: black;
            margin-top: 20px; /* Centering */
        }

        h2 {
            text-align: center;
            margin-bottom: 20px;
            font-size: 2rem;
            font-weight: 600;
            color: #023441;
            letter-spacing: 1px;
            opacity: 0;
            animation: fadeIn 0.8s forwards;
            animation-delay: 0.2s;
        }

        .form-group {
            margin-bottom: 1.5rem;
            width: 100%;
        }

        .form-control {
            border-radius: 12px;
            padding: 15px 20px;
            font-size: 1.2rem;
            background-color: #fbe9f9;
            color: #09771a;
            border: 1px solid #555;
            transition: all 0.3s ease;
            width: 100%;
        }

        .form-control:focus {
            border-color: #5c6bc0;
            box-shadow: 0 0 5px rgba(92, 107, 192, 0.6);
        }

        .password-container {
            position: relative;
        }

        .btn-show-hide {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            background: transparent;
            border: none;
            color: #aaa;
            font-size: 1.3rem;
            cursor: pointer;
            transition: color 0.3s;
        }

        .btn-show-hide:hover {
            color: #fff;
        }

        .btn-primary {
            width: 100%;
            background-color: #5c6bc0;
            border-radius: 12px;
            padding: 15px;
            font-size: 1.2rem;
            font-weight: bold;
            border: none;
            transition: background-color 0.3s ease, transform 0.3s ease;
            margin-top: 15px;
        }

        .btn-primary:hover {
            background-color: #3f4b8b;
            transform: scale(1.05);
        }

        .register-login {
            display: block;
            text-align: center;
            margin-top: 20px;
            font-size: 1rem;
            color: #02214e;
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .register-login:hover {
            color: #5c6bc0;
        }

        @keyframes fadeIn {
            0% { opacity: 0; }
            100% { opacity: 1; }
        }

        @keyframes fadeInUp {
            0% {
                opacity: 0;
                transform: translateY(20px);
            }
            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Mobile responsive styles */
        @media only screen and (max-width: 768px) {
            body {
                padding: 0 10px;
            }

            .container {
                padding: 20px;
                max-width: 90%;
            }

            h2 {
                font-size: 1.6rem;
            }

            .form-control {
                padding: 12px 15px;
                font-size: 1.1rem;
            }

            .btn-primary {
                padding: 12px;
                font-size: 1.1rem;
            }
        }