.login_content {
  border: 1px solid #e8e8e8;
  padding: 15px;
  box-shadow: 0px 10px 13px -7px #000000, 5px 5px 15px 5px rgba(0, 0, 0, 0);
}

.logo-img {
  margin-bottom: 15px;
}

.register_content {
  margin: 0 auto;
  padding: 25px 0 0;
  position: relative;
  text-align: center;
  text-shadow: 0 1px 0 #fff;
  min-width: 540px;
  border: 1px solid #e8e8e8;
  padding: 15px;
  box-shadow: 0px 10px 13px -7px #000000, 5px 5px 15px 5px rgba(0, 0, 0, 0);
}

.register_content a,
.register_content .btn-default:hover {
  text-decoration: none;
}

.register_content a:hover {
  text-decoration: underline;
}

.register_content h1 {
  font: normal 25px Helvetica, Arial, sans-serif;
  letter-spacing: -0.05em;
  line-height: 20px;
  margin: 10px 0 30px;
}

.register_content form {
  margin: 20px 0;
  position: relative;
}

.register_content form input[type=text],
.register_content form input[type=email],
.register_content form input[type=password] {
  border-radius: 3px;
  -ms-box-shadow: 0 1px 0 #fff, 0 -2px 5px rgba(0, 0, 0, 0.08) inset;
  -o-box-shadow: 0 1px 0 #fff, 0 -2px 5px rgba(0, 0, 0, 0.08) inset;
  box-shadow: 0 1px 0 #fff, 0 -2px 5px rgba(0, 0, 0, 0.08) inset;
  border: 1px solid #c8c8c8;
  color: #777;
  margin: 0 0 20px;
  width: 100%;
}

.register_content form input[type=text]:focus,
.register_content form input[type=email]:focus,
.register_content form input[type=password]:focus {
  -ms-box-shadow: 0 0 2px #ed1c24 inset;
  -o-box-shadow: 0 0 2px #ed1c24 inset;
  box-shadow: 0 0 2px #336d6c inset;
  background-color: #fff;
  border: 1px solid #336d6c;
  outline: none;
}

.register_content form div a {
  font-size: 12px;
  margin: 10px 15px 0 0;
}

.register_content div .reset_pass {
  margin-top: 13px !important;
  margin-right: 39px;
  float: right;
}

.register_content form input[type=submit],
#content form .submit {
  float: left;
  margin-left: 38px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  padding: 0 10px;
  background: white;
  position: relative;
  overflow: hidden;
}

/* Animated background elements */
body::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(51, 109, 108, 0.08) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: drift 20s linear infinite;
  z-index: 1;
}

body::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(51, 109, 108, 0.05) 0%, transparent 30%, transparent 70%, rgba(24, 65, 64, 0.03) 100%);
  z-index: 2;
}

/* Filigrana SmartCare */
.watermark-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  background-image: repeating-linear-gradient(-45deg, transparent, transparent 200px, rgba(51, 109, 108, 0.02) 200px, rgba(51, 109, 108, 0.02) 220px), repeating-linear-gradient(45deg, transparent, transparent 200px, rgba(24, 65, 64, 0.02) 200px, rgba(24, 65, 64, 0.02) 220px);
}

/* Filigrana principale */
.watermark-main::before {
  content: "SmartCare";
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  font-size: 8rem;
  font-weight: 100;
  color: rgba(112, 125, 125, 0.01);
  letter-spacing: 0.5rem;
  text-transform: uppercase;
  font-family: "Open Sans", sans-serif;
  z-index: 1;
  pointer-events: none;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  white-space: nowrap;
}

/* Filigrana multipla con diversi angoli */
.watermark-multiple::before,
.watermark-multiple::after {
  content: "SmartCare";
  position: fixed;
  font-size: 6rem;
  font-weight: 100;
  color: rgba(24, 65, 64, 0.06);
  letter-spacing: 0.3rem;
  text-transform: uppercase;
  font-family: "Open Sans", sans-serif;
  pointer-events: none;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  white-space: nowrap;
}

.watermark-multiple::before {
  top: 25%;
  left: 25%;
  transform: translate(-50%, -50%) rotate(-30deg);
  z-index: 1;
}

.watermark-multiple::after {
  top: 75%;
  right: 25%;
  transform: translate(50%, -50%) rotate(-60deg);
  z-index: 1;
}

@keyframes drift {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(-60px, -60px) rotate(360deg);
  }
}
.glass-wrapper {
  width: 400px;
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  border: 2px solid rgba(51, 109, 108, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(248, 250, 252, 0.85);
  box-shadow: 0 20px 40px rgba(51, 109, 108, 0.1), 0 8px 16px rgba(24, 65, 64, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  position: relative;
  z-index: 10;
}

.logo-container {
  margin-bottom: 30px;
}

.logo-img {
  max-width: 200px;
  height: auto;
  filter: brightness(1.05) contrast(1.1) saturate(1.1);
}

.glass-form {
  display: flex;
  flex-direction: column;
}

h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #1a3e3d;
  font-weight: 400;
  text-shadow: 0 2px 4px rgba(51, 109, 108, 0.1);
}

.input-field {
  position: relative;
  margin: 20px 0;
}

.input-field input {
  width: 100%;
  height: 50px;
  background: rgba(248, 250, 252, 0.6);
  border: 2px solid rgba(51, 109, 108, 0.2);
  border-radius: 10px;
  outline: none;
  font-size: 16px;
  color: #1a3e3d;
  padding: 15px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.input-field input::-moz-placeholder {
  color: rgba(51, 109, 108, 0.6);
}

.input-field input::placeholder {
  color: rgba(51, 109, 108, 0.6);
}

.input-field input:focus {
  border-color: #336d6c;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(51, 109, 108, 0.1), 0 4px 12px rgba(51, 109, 108, 0.15);
  transform: translateY(-1px);
}

.password-container {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(51, 109, 108, 0.7);
  cursor: pointer;
  transition: color 0.3s ease;
}

.toggle-password:hover {
  color: #336d6c;
}

.submit-btn {
  background: linear-gradient(135deg, #336d6c 0%, #184140 100%);
  color: #fff;
  font-weight: 600;
  border: none;
  padding: 15px 20px;
  cursor: pointer;
  border-radius: 10px;
  font-size: 16px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  margin: 20px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 6px 20px rgba(51, 109, 108, 0.25);
}

.submit-btn:hover {
  background: linear-gradient(135deg, #184140 0%, #336d6c 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(51, 109, 108, 0.35);
}

.sso-login {
  margin: 20px 0;
}

.sso-btn {
  display: inline-block;
  color: #1a3e3d;
  text-decoration: none;
  padding: 12px 24px;
  border: 2px solid rgba(51, 109, 108, 0.3);
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.7);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
}

.sso-btn:hover {
  background: rgba(51, 109, 108, 0.1);
  border-color: #336d6c;
  transform: translateY(-1px);
  text-decoration: none;
  color: #1a3e3d;
  box-shadow: 0 4px 15px rgba(51, 109, 108, 0.2);
}

.footer-info {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(51, 109, 108, 0.15);
}

.footer-logo {
  max-width: 150px;
  margin-bottom: 15px;
  opacity: 0.9;
}

.copyright {
  color: rgba(51, 109, 108, 0.8);
  font-size: 12px;
  line-height: 1.4;
}

.copyright a {
  color: rgba(24, 65, 64, 0.9);
  text-decoration: none;
}

.copyright a:hover {
  text-decoration: underline;
  color: #336d6c;
}

.error-message {
  border: 2px solid rgba(220, 53, 69, 0.8);
  padding: 15px;
  color: #dc3545;
  background: rgba(248, 215, 218, 0.95);
  border-radius: 10px;
  margin: 20px 0;
  backdrop-filter: blur(15px);
  font-size: 14px;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.15);
}

@media (max-width: 480px) {
  .glass-wrapper {
    width: 90%;
    padding: 30px 20px;
  }
  .logo-img {
    max-width: 150px;
  }
  h2 {
    font-size: 1.5rem;
  }
}
