﻿/* Base font */
* {
  font-family: "Manrope", "Roboto", sans-serif;
}

/* Body background */
body {
  height: 100vh;
  background: linear-gradient(120deg, #0a0c23 0%, #1a133a 100%);
}

.main-bg-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  gap: 80px; /* Space between login_div and login-image-container */
}

/* Login box: left-aligned, not centered */

.login_div {
  width: 468px;
  /* background: rgba(0,0,0,0.4); Example background */
  border-radius: 16px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 32px; /* Space between header-container, form, and follow_block */
  box-sizing: border-box;
}

/* Header/logo styling */
.logo_div {
  margin-bottom: 20px;
  text-align: left;
  width: 100%;
}

.write h1 {
  margin-bottom: 32px;
  color: #fff;
  font-size: 34px;
  font-family: "Manrope", sans-serif;
  font-weight: 200;
  line-height: 120%;
  letter-spacing: 0;
  text-align: left;
}

.header-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

/* Version text */
#versionText {
  font-family: "Manrope", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 120%;
  letter-spacing: 0;
  color: #f4f9fd;
  text-align: left;
  margin-bottom: 24px;
}

/* Form styling */
.login_div form {
  width: 100%;
  margin-top: 16px;
}

/* Form group: stack vertically, left-aligned */
.form-group {
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  margin-bottom: 24px;
  width: 100%;
  position: relative;
}

/* Label styling */
.login_div label {
  font-family: "Manrope", sans-serif;
  font-weight: 300;
  font-size: 16px;
  color: #fff;
  margin-bottom: 8px;
  margin-left: 2px;
  line-height: 100%;
  letter-spacing: 0;
}

/* Input styling */
.form-control {
  background: rgba(11, 12, 22, 1) !important;
  color: #fff !important;
  font-family: "Manrope", sans-serif !important;
  font-weight: 300 !important;
  font-size: 1rem !important;
  line-height: 100% !important;
  letter-spacing: 0 !important;
  border: 0.63px solid rgba(76, 76, 76, 1) !important;
  border-radius: 8px !important;
  padding: 0 1rem !important;
  box-sizing: border-box;
  outline: none;
  margin-bottom: 0;
  text-align: left;
  text-indent: 0;
  transition: all 0.3s ease-in-out;
}

.form-control:focus {
  border: 1.5px solid #a259f7 !important;
  background: rgba(11, 12, 22, 1) !important;
  box-shadow: unset !important;
}

.form-control::placeholder {
  color: #aaa;
  font-family: "Manrope", sans-serif;
  font-weight: 300;
  font-size: 16px;
  opacity: 1;
}

/* Hide icons inside input fields */
.form-group i.fa-user,
.form-group i.fa-lock {
  display: none !important;
}

/* Password eye icon */
#toggle_pwd {
  position: absolute;
  right: 16px;
  top: 44px;
  color: #aaa;
  font-size: 18px;
  cursor: pointer;
  z-index: 2;
}

/* Button styling */
.btn-submit {
  border: unset;
  border-radius: 30px;
  padding: 1rem 0;
  background-color: rgba(164, 76, 205, 1);
  background: radial-gradient(
    187.2% 173.47% at 51.61% 100%,
    rgba(164, 76, 205, 1) 13.46%,
    rgb(148, 197, 220) 100%
  );
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: none;
  margin-top: 10px;
  margin-bottom: 10px;
}

.btn-submit:hover {
  background-color: #94c5dc;
  background: linear-gradient(
    90deg,
    rgba(148, 197, 220, 1) 0%,
    rgba(164, 76, 205, 1) 50%,
    rgba(148, 197, 220, 1) 100%
  );
  color: #fff;
}

/* "Forgot password" link styling */
a.forgot_pwd {
  color: #aaa;
  text-decoration: none;
  font-size: 14px;
  align-self: flex-end;
  margin-top: 4px;
  margin-bottom: 24px;
  transition: color 0.2s;
  float: none !important;
  width: auto !important;
  text-align: right;
  margin-right: 0;
}

a.forgot_pwd:hover {
  color: #fff;
}

.social_icons {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 16px;
}

.social_icons li {
  display: inline-block;
}

.social_icons img {
  width: 36px;
  height: 36px;
  filter: grayscale(1) brightness(0.8);
  transition: filter 0.2s;
}

.social_icons img:hover {
  filter: none;
}

/* Loading overlay */
#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-popup {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
}

#error_notif {
  display: none;
  margin-top: 20px;
}

.circle-image {
  border-radius: 50%;
  overflow: hidden;
  display: inline-block;
}

/* Responsive adjustments for Loginview */
@media (max-width: 1200px) {
  .login_div {
    min-width: 300px;
    max-width: 300px;
    margin-left: 16px;
    /*margin-top: 40px;*/
    padding: 24px 12px;
  }
}

@media (max-width: 900px) {
  .login_div {
    margin-left: 0;
    /*margin-top: 40px;*/
    min-width: 90vw;
    max-width: 98vw;
    padding: 24px 8px;
  }
}

@media (max-width: 600px) {
  .header-container {
    flex-direction: column;
    align-items: center;
  }

  .write h1 {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .logo_div {
    margin-bottom: 10px;
  }

  .logo_div a img {
    width: 60vw !important;
    max-width: 180px;
    height: auto;
  }

  .form-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-control {
    font-size: 16px;
    padding: 10px 10px;
    height: 45px;
  }

  .follow_block {
    padding: 10px 0;
  }

  .social_icons img {
    width: 32px;
    height: 32px;
  }

  #loading-overlay .loading-icon img {
    width: 48px !important;
    height: 48px !important;
  }
}
/* Example: */
.header,
.navbar,
.top-bar {
  display: none !important;
}

.main-bg-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  gap: 250px; /* Space between login_div and login-image-container */
}

.login-image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 400px;
  max-width: 600px;
  width: 40vw;
  height: 90vh;
  margin-left: 80px;
  border-radius: 32px;
  overflow: hidden;
  background: rgba(30, 20, 60, 0.7); /* Optional: for a glass effect */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.login-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
}

@media (max-width: 900px) {
  .login-image-container {
    display: none;
  }
}

.gradient-ellipse {
  position: fixed;
  width: 50rem;
  filter: blur(5rem);
  opacity: 0.8;
}

.gradient-ellipse-right {
  width: 50rem;
  height: 30rem;
  right: -5rem;
  top: -10rem;
  background: radial-gradient(
    circle,
    rgba(164, 76, 205, 1) 0,
    rgba(164, 76, 205, 0) 70%
  );
}

.gradient-ellipse-left {
  width: 30rem;
  height: 20rem;
  left: -22rem;
  top: -3rem;
  background: radial-gradient(
    circle,
    rgba(148, 197, 220, 1) 0%,
    rgba(148, 197, 220, 0) 70%
  );
}

.gradient-ellipse-down {
  width: 25rem;
  height: 25rem;
  left: 50%;
  bottom: -25rem;
  background: #b9bafe;
  background: radial-gradient(
    circle,
    rgba(244, 249, 253, 1) 68%,
    rgba(185, 186, 254, 1) 0
  );
  filter: blur(7rem);
  box-shadow: 0 0 30px rgba(185, 186, 254, 0.8),
    0 0 60px rgba(185, 186, 254, 0.4);
  transform: translateX(-50%);
}

.title-form {
  font-family: "Manrope", sans-serif !important;
  font-weight: 200;
  font-size: 2rem;
  line-height: 120%;
  letter-spacing: 0%;
}

.btn-link,
.text-mail,
.navbar-links a {
  color: rgb(244, 249, 253);
  font-family: "Manrope";
  font-weight: lighter;
  font-size: 0.85rem;
  line-height: 100%;
  letter-spacing: 0.06rem;
}

.navbar-links a {
  font-size: 0.65rem;
  line-height: 120%;
  letter-spacing: 0.1rem;
  margin: 0 0.5rem;
}

.btn-underline-hover::after {
  width: 0 !important;
}

.btn-underline-hover:hover::after {
  width: 100% !important;
}

.btn-link {
  position: relative;
  padding-bottom: 0.25rem;
  cursor: pointer;
}

.btn-link:hover {
  color: rgba(244, 249, 253, 1);
  text-decoration: unset;
}

.btn-link.btn-underline::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 100%;
  height: 1px;
  margin-top: 2px;
  background-color: rgba(244, 249, 253, 0.4);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

hr.line {
  background-color: rgba(244, 249, 253, 0.4);
  height: 0.1px;
  margin: 0.5rem 0;
}

.form-control:hover:not(.form-control:focus) {
  border: 1px solid rgba(244, 249, 253, 1) !important;
}

.btn-link.btn-underline:hover::after {
  width: 30%;
}

.title-versione {
  font-size: 0.85rem;
  color: rgb(255 255 255 / 50%) !important;
}

.form-auth .form-group {
  flex-direction: column-reverse;
}

.form-auth .form-label {
  font-size: 0.95rem;
  font-weight: lighter;
  line-height: 100%;
  color: rgba(255, 255, 255, 1);
  transition: all 0.3s ease-in-out;
  margin-left: 0.2rem;
}

.layout-auth {
  padding: 40px;
}

.form-control:focus + .form-label {
  color: #a259f7 !important;
}

.social-media a {
  margin-right: 1rem;
  font-size: 1.5rem;
}

.social-media i {
  color: rgba(244, 249, 253, 0.4);
  transition: all 0.3s ease-in-out;
}

.social-media a:hover {
  color: unset;
  text-decoration: unset;
}

.social-media a:hover i {
  color: rgba(244, 249, 253, 0.8);
}

.background-login {
  background-image: url(/images/login-rectangle.png);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: right center;
}

.layout-auth-container {
  max-width: 567px;
}

.password-wrapper {
  display: flex;
  flex-direction: row;
  position: relative;
  width: 100%;
}

.password-wrapper i {
  display: flex;
  align-items: center;
  height: 100%;
  position: absolute;
  right: .5rem;
  color: rgba(162, 89, 247, .35);
  cursor: pointer;
}

.password-wrapper input {
  flex: 1;
  padding-right: 2rem !important;
  padding-left: .5rem !important;
}

@media only screen and (max-width: 991px) {
  .gradient-ellipse-down {
    left: 100%;
    right: 0;
  }

  .background-login {
    display: none;
  }

  .layout-auth {
    padding: 20px;
  }

  .layout-auth-container {
    max-width: 100%;
  }
}
