/*
        Designed by: SELECTO
        Original image: https://dribbble.com/shots/5311359-Diprella-Login
*/

*, *::after, *::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
}

/* Generic */
body , .cd__main{
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  background:url(../img/marsu_img.jpg)no-repeat center !important;
  background-size: cover !important;
  background-attachment: fixed !important;
}

/**/
.main {
  position: relative;
  width: 1000px;
  min-width: 1000px;
  min-height: 600px;
  height: 600px;
  padding: 25px;
  background-color: #ecf0f3;
  border-radius: 12px;
  overflow: hidden;
}
@media (max-width: 1200px) {
  .main {
    transform: scale(0.7);
  }
}
@media (max-width: 1000px) {
  .main {
    transform: scale(0.6);
  }
}
@media (max-width: 800px) {
  .main {
    transform: scale(0.5);
  }
}
@media (max-width: 600px) {
  .main {
    transform: scale(0.4);
  }
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: -10%;
  width: 600px;
  height: 120%;
  padding: 25px;
  background-image: url(../img/front_img.jpg);
  background-size: cover;
  background-position: center;
  background-size:180.5%;
  transition: 2.25s;
  color: white;
}
/* Login Form Styling */
.form {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 58%;
  height: 50%;
  padding: 30px 25px;
  border-radius: 15px;
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  color: white;
  backdrop-filter: blur(3px);
}

.form h2 {
  color: white;
  font-size: 28px;
  margin-bottom: 25px;
  font-weight: 800;
}




.form-group {
  position: relative;
  width: 100%;
  margin-bottom: 20px;
}

.form-group i {
  position: absolute;
  top: 12px;
  left: 10px;
  color: white;
  font-size: 14px;
}

.form-group input {
  width: 100%;
  padding: 10px 10px 10px 35px;
  font-size: 14px;
  border: none;
  border-radius: 8px;
  background: transparent;
  border-bottom: 1px solid #ccc;
  color: white;
  outline: none;
}

.form-group input::placeholder {
  color: #dcdcdc;
}

.form-options {
  align-self: flex-start;
  font-size: 12px;
  color: white;
  margin-bottom: 20px;
}

.btn-login {
  background-color: #1f1a56;
  color: white;
  padding: 10px 30px;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  cursor: pointer;
  margin-bottom: 15px;
  transition: background-color 0.3s ease;
}

.btn-login:hover {
  background-color: #3a2f90;
}

.form-footer {
  color: white;
  font-size: 13px;
}

.form-footer a {
  color: #8ab4f8;
  text-decoration: none;
}

.form-footer a:hover {
  text-decoration: underline;
}


.title {
  font-size: 18px;
  font-weight: 700;
  line-height: 3;
  color: #fafafa;
}

.description {
  font-size: 14px;
  letter-spacing: 0.25px;
  text-align: center;
  line-height: 1.6;
  color: white;
}



/**/
.a-container {
  z-index: 100;
  left: calc(100% - 600px );
}

.b-container {
  left: calc(100% - 600px );
  z-index: 0;
}

.switch {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 400px;
  padding: 50px;
  z-index: 200;
  transition: 1.25s;
  background:#0B142F;
  overflow: hidden;
}


.switch__circle--t {
  top: -30%;
  left: 60%;
  width: 300px;
  height: 300px;
}
.switch__container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  position: absolute;
  width: 400px;
  padding: 50px 55px;
  transition: 1.25s;
}
.switch__button {
  cursor: pointer;
}
.switch__button:hover {
  transform: scale(0.985);
  background-color: rgb(132, 75, 75);
  transition: 0.25s;
}
.switch__button:active, .switch__button:focus {
  transform: scale(0.97);
  transition: 0.25s;
}

/**/
.is-txr {
  left: calc(100% - 400px );
  transition: 1.25s;
  transform-origin: left;
}

.is-txl {
  left: 0;
  transition: 1.25s;
  transform-origin: right;
}

.is-z200 {
  z-index: 200;
  transition: 1.25s;
}

.is-hidden {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  transition: 1.25s;
  width: auto;
}

.is-gx {
  animation: is-gx 1.25s;
}

@keyframes is-gx {
  0%, 10%, 100% {
    width: 400px;
  }
  30%, 50% {
    width: 500px;
  }
}

.logo{
  width: 40%;
  height: 40%;
  border-radius: 50%;
}

.alert.alert-success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 15px;
  font-size: 14px;
}

/* Fullscreen modal */
.loading-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 15, 0.6);
    backdrop-filter: blur(6px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

/* Show modal with fade-in */
.loading-modal.show {
    display: flex;
    opacity: 1;
}

/* Modal content */
.loading-content {
    text-align: center;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    animation: popUp 0.4s ease forwards;
}

/* Spinner (modern gradient) */
.spinner {
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid #4facfe; /* blue gradient style */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

/* Text style */
.loading-content p {
    font-size: 1rem;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes popUp {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
