@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

.login-page {
  width: 410px;
  max-width: 94%;
  padding: 65px 0 30px;
  margin: auto;
}

/* Doctor-themed animated card & border */
.form {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  max-width: 410px;
  padding: 36px 34px 28px;
  text-align: center;
  border-radius: 22px;
  border: 2px solid rgba(0, 180, 216, 0.45);
  box-shadow:
    0 20px 45px rgba(10, 56, 110, 0.22),
    0 0 0 5px rgba(255, 255, 255, 0.55),
    0 0 25px rgba(0, 180, 216, 0.28);
  animation: cardEntrance 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards,
             medicalBorderGlow 3.5s ease-in-out infinite alternate;
  overflow: visible;
}

/* Top decorative animated gradient bar inside the card */
.doctor-login-card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 18px;
  right: 18px;
  height: 5px;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(90deg, #00b4d8, #1570E4, #06d6a0, #00b4d8);
  background-size: 200% 100%;
  animation: gradientMove 3s linear infinite;
}

@keyframes cardEntrance {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes medicalBorderGlow {
  0% {
    border-color: rgba(21, 112, 228, 0.55);
    box-shadow:
      0 18px 40px rgba(10, 56, 110, 0.20),
      0 0 0 5px rgba(255, 255, 255, 0.6),
      0 0 20px rgba(21, 112, 228, 0.25);
  }
  100% {
    border-color: rgba(0, 180, 216, 0.9);
    box-shadow:
      0 22px 48px rgba(10, 56, 110, 0.26),
      0 0 0 6px rgba(0, 180, 216, 0.18),
      0 0 32px rgba(0, 180, 216, 0.45);
  }
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* Floating Doctor Badge at top of card */
.doctor-badge-wrapper {
  position: relative;
  width: 68px;
  height: 68px;
  margin: -68px auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doctor-badge {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00b4d8 0%, #1570E4 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  border: 4px solid #ffffff;
  box-shadow: 0 8px 20px rgba(21, 112, 228, 0.35);
  position: relative;
  z-index: 2;
  animation: badgeFloat 3s ease-in-out infinite;
}

.pulse-ring {
  position: absolute;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  border: 2px solid #00b4d8;
  z-index: 1;
  animation: pulseWave 2.2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes pulseWave {
  0% {
    transform: scale(0.95);
    opacity: 0.85;
  }
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

.sub-tagline {
  font-size: 13px;
  color: #0077b6;
  font-weight: 500;
  margin: -4px 0 4px;
  letter-spacing: 0.3px;
}

/* Animated ECG Heartbeat Line */
.ecg-divider {
  width: 100%;
  margin: 2px auto 12px;
  overflow: hidden;
}

.ecg-svg {
  width: 220px;
  height: 28px;
  display: block;
  margin: 0 auto;
}

.ecg-svg polyline {
  stroke: #00b4d8;
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: ecgPulse 2.6s ease-in-out infinite;
  filter: drop-shadow(0 2px 4px rgba(0, 180, 216, 0.35));
}

@keyframes ecgPulse {
  0% {
    stroke-dashoffset: 320;
    opacity: 0.3;
  }
  50% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  100% {
    stroke-dashoffset: -320;
    opacity: 0.3;
  }
}

/* Inputs & Animated Focus Border */
.input-animated-group {
  margin-bottom: 16px;
  text-align: left;
}

.input-icon-wrap {
  position: relative;
  width: 100%;
}

.input-icon {
  position: absolute;
  left: 15px;
  top: 0;
  height: 48px;
  line-height: 48px !important;
  color: #6c8baa;
  font-size: 16px;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 2;
}

.form input {
  font-family: "Poppins", "Roboto", sans-serif;
  outline: 0;
  background: #f4f9fd;
  width: 100%;
  border: 1.5px solid #d0e3f2;
  border-radius: 12px;
  padding: 13px 15px;
  box-sizing: border-box;
  font-size: 14px;
  color: #1e293b;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-icon-wrap .login-input {
  padding-left: 42px;
  height: 48px;
}

.form input:hover {
  border-color: #90caf9;
  background: #f8fbff;
}

.form input:focus {
  background: #ffffff;
  border-color: #00b4d8;
  box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.16), 0 4px 12px rgba(21, 112, 228, 0.08);
  transform: translateY(-1px);
}

.input-icon-wrap:focus-within .input-icon {
  color: #1570E4;
  transform: scale(1.12);
}

/* Doctor Login Submit Button */
.form button {
  font-family: "Poppins", "Roboto", sans-serif;
  text-transform: capitalize;
  outline: 0;
  background: linear-gradient(135deg, #1570E4 0%, #00b4d8 100%);
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 13px 18px;
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.4px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(21, 112, 228, 0.32);
  transition: all 0.3s ease;
}

.form button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  animation: btnShine 4s infinite;
}

@keyframes btnShine {
  0%, 60% { left: -100%; }
  100% { left: 160%; }
}

.form button i {
  margin-left: 6px;
  transition: transform 0.3s ease;
}

.form button:hover, .form button:active, .form button:focus {
  background: linear-gradient(135deg, #0b5ed7 0%, #0096c7 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(21, 112, 228, 0.42);
}

.form button:hover i {
  transform: translateX(4px);
}

.form .message {
  margin: 12px 0 0;
  color: #64748b;
  font-size: 13px;
}

.form .message a {
  color: #1570E4;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.form .message a:hover {
  color: #00b4d8;
  text-decoration: underline;
}

.copyright-text {
  margin-top: 18px !important;
  padding-top: 12px;
  border-top: 1px dashed #e2e8f0;
  font-size: 12px !important;
  color: #94a3b8 !important;
}

.form .register-form {
  display: none;
}
.container {
  position: relative;
  z-index: 1;
  max-width: 300px;
  margin: 0 auto;
}
.container:before, .container:after {
  content: "";
  display: block;
  clear: both;
}
.container .info {
  margin: 50px auto;
  text-align: center;
}
.container .info h1 {
  margin: 0 0 15px;
  padding: 0;
  font-size: 36px;
  font-weight: 300;
  color: #1a1a1a;
}
.container .info span {
  color: #4d4d4d;
  font-size: 12px;
}
.container .info span a {
  color: #000000;
  text-decoration: none;
}
.container .info span .fa {
  color: #EF3B3A;
}
body {
  font-family: "Poppins", "Roboto", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h3 {
    font-size: 18px;
    font-family: Verdana, 'Geneva', Tahoma, sans-serif;
}
.heading {
  text-align: center;
  background: linear-gradient(135deg, #0d47a1 0%, #1570E4 55%, #00b4d8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 25px;
  font-weight: 700;
  margin-top: 4px;
  margin-bottom: 6px;
}
.text-danger, .error {
  color: #e11d48;
  font-size: 12.5px;
  font-weight: 500;
  display: block;
  margin-top: 4px;
  text-align: left;
}
.small-heading {
  font-size: 16px;
  color: #334155;
  font-weight: 600;
  margin-top: 0;
  padding-bottom: 10px;
}

/* preloader */
#preloader {
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.7);
  z-index: 9999;
  display: none;
}
@-webkit-keyframes spin {
  from {
      -webkit-transform: rotate(0deg);
  }
  to {
      -webkit-transform: rotate(360deg);
  }
}

@keyframes spin {
  from {
      transform: rotate(0deg);
  }
  to {
      transform: rotate(360deg);
  }
}

#preloader::after {
  content: "";
  display: block;
  position: absolute;
  left: 48%;
  top: 40%;
  width: 40px;
  height: 40px;
  border-style: solid;
  border-color: black;
  border-top-color: transparent;
  border-width: 4px;
  border-radius: 50%;
  -webkit-animation: spin 0.8s linear infinite;
  animation: spin 0.8s linear infinite;
}

/* style inputs and link buttons */
input,
.btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 4px;
  margin: 5px 0;
  opacity: 0.85;
  display: inline-block;
  font-size: 17px;
  line-height: 20px;
  text-decoration: none; /* remove underline from anchors */
}

input:hover,
.btn:hover {
  opacity: 1;
}

/* add appropriate colors to fb, twitter and google buttons */
.fb {
  background-color: #3B5998;
  color: white;
}

.twitter {
  background-color: #55ACEE;
  color: white;
}

.google {
  background-color: #dd4b39;
  color: white;
}

/* style the submit button */
input[type=submit] {
  background-color: #04AA6D;
  color: white;
  cursor: pointer;
}

input[type=submit]:hover {
  background-color: #45a049;
}

/* Two-column layout */
.col {
  float: left;
  width: 50%;
  margin: auto;
  padding: 0 50px;
  margin-top: 6px;
}

/* Clear floats after the columns */
.row:after {
  content: "";
  display: table;
  clear: both;
}

/* vertical line */
.vl {
  position: absolute;
  left: 50%;
  transform: translate(-50%);
  border: 2px solid #ddd;
  height: 175px;
}

/* text inside the vertical line */
.vl-innertext {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  background-color: #f1f1f1;
  border: 1px solid #ccc;
  border-radius: 50%;
  padding: 8px 10px;
}

/* hide some text on medium and large screens */
.hide-md-lg {
  display: none;
}

/* bottom container */
.bottom-container {
  text-align: center;
  background-color: #666;
  border-radius: 0px 0px 4px 4px;
}

/* Responsive layout - when the screen is less than 650px wide, make the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 650px) {
  .col {
    width: 100%;
    margin-top: 0;
  }
  /* hide the vertical line */
  .vl {
    display: none;
  }
  /* show the hidden text on small screens */
  .hide-md-lg {
    display: block;
    text-align: center;
  }
}

.btn:hover {
  color: white;
}