/* #region Variables */

:root {
  --primary-color: #3b82f6;
  --primary-light: #60a5fa;
  --primary-dark: #1d4ed8;
  --primary-darker: #1e40af;
  --secondary-color: #f8fafc;
  --accent-color: #f59e0b;
  --success-color: #10b981;
  --text-color: #0f172a;
  --text-light: #64748b;
  --text-muted: #94a3b8;
  --border-color: #e2e8f0;
}

/* #endregion */

/* #region General */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-color);
  overflow: hidden;
  background: #ffffff;
  position: relative;
}

.mdContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding: 20px;
  position: relative;
  background: 
    linear-gradient(135deg, 
      rgba(248, 250, 252, 0.95) 0%, 
      rgba(241, 245, 249, 0.97) 49%, 
      rgba(241, 245, 249, 0.97) 50%, 
      rgba(238, 242, 255, 0.95) 51%, 
      rgba(237, 233, 254, 0.95) 100%
    ),
    linear-gradient(135deg, #ffffff 0%, #f8fafc 25%, #f1f5f9 75%, #e2e8f0 100%);
  overflow: hidden;
}

/* #endregion */

/* #region Navbar */

.mdNavbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  background: 
    linear-gradient(135deg, 
      rgba(248, 250, 252, 0.95) 0%, 
      rgba(241, 245, 249, 0.97) 49%, 
      rgba(241, 245, 249, 0.97) 50%, 
      rgba(238, 242, 255, 0.95) 51%, 
      rgba(237, 233, 254, 0.95) 100%
    ),
    linear-gradient(135deg, #ffffff 0%, #f8fafc 25%, #f1f5f9 75%, #e2e8f0 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 1000;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

.mdBackButton {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.3px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  position: relative;
  overflow: hidden;
}

.mdBackButton::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

.mdBackButton:hover::before {
  left: 100%;
}

.mdBackButton:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.mdBackButtonIcon {
  margin-right: 8px;
  font-size: 16px;
  transition: transform 0.3s ease;
}

.mdBackButton:hover .mdBackButtonIcon {
  transform: translateX(-2px);
}

.mdDateTime {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border: 1px solid var(--primary-dark);
  border-radius: 12px;
  padding: 12px 20px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  white-space: nowrap;
  min-width: 305px;
}

.mdDateTime:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.mdDateTimeIcon {
  color: white;
  margin-right: 10px;
  font-size: 16px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

#currentDateTimeText {
  font-weight: 600;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

/* #endregion */

/* #region Additional Floating Elements */

.mdFloatingElement {
  position: absolute;
  z-index: 0;
}

.mdFloatingElement:nth-child(1) {
  top: -150px;
  left: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0%, rgba(16, 185, 129, 0.08) 40%, transparent 70%);
  border-radius: 50%;
  animation: slowPulse 20s infinite alternate;
  filter: blur(40px);
}

.mdFloatingElement:nth-child(2) {
  bottom: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, rgba(168, 85, 247, 0.06) 40%, transparent 70%);
  border-radius: 50%;
  animation: slowPulse 18s infinite alternate-reverse;
  filter: blur(45px);
}

.mdFloatingElement:nth-child(3) {
  top: 30%;
  right: 10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, rgba(245, 158, 11, 0.05) 50%, transparent 70%);
  border-radius: 50%;
  animation: gentleFloat 25s infinite ease-in-out;
  filter: blur(35px);
}

.mdFloatingElement:nth-child(4) {
  bottom: 40%;
  left: 15%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.14) 0%, rgba(59, 130, 246, 0.06) 50%, transparent 70%);
  border-radius: 50%;
  animation: gentleFloat 22s infinite ease-in-out reverse;
  filter: blur(30px);
}

.mdFloatingElement:nth-child(5) {
  top: 70%;
  left: 70%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, rgba(236, 72, 153, 0.04) 50%, transparent 70%);
  border-radius: 50%;
  animation: slowPulse 16s infinite alternate;
  filter: blur(25px);
}

.mdGeometricShape {
  position: absolute;
  z-index: 0;
}

.mdGeometricShape:nth-child(1) {
  top: 5%;
  right: 8%;
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(99, 102, 241, 0.15));
  border-radius: 50%;
  animation: gentleFloat 20s infinite ease-in-out;
  filter: blur(1px);
  border: 3px solid rgba(99, 102, 241, 0.3);
  box-shadow: 0 0 60px rgba(99, 102, 241, 0.2);
}

.mdGeometricShape:nth-child(2) {
  bottom: 15%;
  left: 5%;
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.28), rgba(245, 158, 11, 0.18));
  border-radius: 30px;
  transform: rotate(45deg);
  animation: gentleFloat 15s infinite ease-in-out reverse;
  filter: blur(0.5px);
  border: 3px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 0 50px rgba(245, 158, 11, 0.25);
}

.mdGeometricShape:nth-child(3) {
  top: 40%;
  right: 3%;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(16, 185, 129, 0.15));
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  animation: gentleFloat 18s infinite ease-in-out;
  filter: blur(0.5px);
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.22);
}

.mdGeometricShape:nth-child(4) {
  top: 20%;
  left: 8%;
  width: 140px;
  height: 140px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.22), rgba(168, 85, 247, 0.12));
  border-radius: 50%;
  animation: slowPulse 22s infinite alternate;
  filter: blur(0.5px);
  border: 2px solid rgba(168, 85, 247, 0.25);
  box-shadow: 0 0 45px rgba(168, 85, 247, 0.2);
}

.mdGeometricShape:nth-child(5) {
  bottom: 35%;
  right: 25%;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.24), rgba(59, 130, 246, 0.14));
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  animation: gentleFloat 16s infinite ease-in-out;
  filter: blur(0.3px);
  box-shadow: 0 0 35px rgba(59, 130, 246, 0.18);
}

.mdGeometricShape:nth-child(6) {
  top: 65%;
  left: 25%;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.22), rgba(236, 72, 153, 0.12));
  border-radius: 20px;
  transform: rotate(30deg);
  animation: slowPulse 14s infinite alternate-reverse;
  filter: blur(0.3px);
  box-shadow: 0 0 30px rgba(236, 72, 153, 0.18);
}

.mdGeometricShape:nth-child(7) {
  top: 80%;
  right: 40%;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.28), rgba(99, 102, 241, 0.18));
  border-radius: 50%;
  animation: gentleFloat 12s infinite ease-in-out;
  filter: blur(0.2px);
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.22);
}

/* Additional More Visible Shapes */
.mdGeometricShape:nth-child(8) {
  top: 15%;
  left: 35%;
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(34, 197, 94, 0.15));
  border-radius: 50% 20% 50% 20%;
  animation: gentleFloat 17s infinite ease-in-out;
  filter: blur(0.3px);
  box-shadow: 0 0 35px rgba(34, 197, 94, 0.2);
  border: 2px solid rgba(34, 197, 94, 0.3);
}

.mdGeometricShape:nth-child(9) {
  bottom: 25%;
  left: 70%;
  width: 110px;
  height: 110px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(139, 92, 246, 0.12));
  clip-path: polygon(50% 0%, 90% 20%, 100% 60%, 75% 100%, 25% 100%, 0% 60%, 10% 20%);
  animation: slowPulse 19s infinite alternate;
  filter: blur(0.4px);
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.18);
}

.mdGeometricShape:nth-child(10) {
  top: 50%;
  left: 15%;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.26), rgba(249, 115, 22, 0.16));
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  transform: rotate(-15deg);
  animation: gentleFloat 14s infinite ease-in-out reverse;
  filter: blur(0.2px);
  box-shadow: 0 0 28px rgba(249, 115, 22, 0.2);
}

.mdGeometricShape:nth-child(11) {
  top: 30%;
  right: 35%;
  width: 85px;
  height: 85px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.24), rgba(14, 165, 233, 0.14));
  clip-path: polygon(20% 0%, 80% 0%, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0% 80%, 0% 20%);
  animation: slowPulse 16s infinite alternate-reverse;
  filter: blur(0.3px);
  box-shadow: 0 0 32px rgba(14, 165, 233, 0.17);
}

.mdGeometricShape:nth-child(12) {
  bottom: 10%;
  right: 15%;
  width: 95px;
  height: 95px;
  background: linear-gradient(135deg, rgba(217, 70, 239, 0.23), rgba(217, 70, 239, 0.13));
  border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
  transform: rotate(25deg);
  animation: gentleFloat 13s infinite ease-in-out;
  filter: blur(0.4px);
  box-shadow: 0 0 38px rgba(217, 70, 239, 0.19);
}

@keyframes gentleFloat {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    opacity: 0.8;
  }
  33% {
    transform: translate(30px, -40px) rotate(120deg) scale(1.1);
    opacity: 0.6;
  }
  66% {
    transform: translate(-20px, 30px) rotate(240deg) scale(0.9);
    opacity: 0.9;
  }
}

@keyframes slowPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.4;
  }
}

/* #endregion */

/* #region Login Card */

.mdLoginCard {
  width: 100%;
  max-width: 460px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-radius: 24px;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.08),
    0 8px 24px rgba(99, 102, 241, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 48px 40px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mdLogoArea {
  text-align: center;
  margin-bottom: 32px;
  position: relative;
}

.mdLogoArea img {
  height: 30px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.08));
  transition: all 0.3s ease;
}

.mdLoginHeader {
  text-align: center;
  margin-bottom: 32px;
}

.mdLoginHeader h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.mdLoginHeader p {
  color: var(--text-light);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
}

.mdFormGroup {
  margin-bottom: 24px;
  position: relative;
}

.mdFormGroup label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-color);
  letter-spacing: 0.2px;
}

.mdInputGroup {
  position: relative;
}

.mdInputGroup i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-color);
  font-size: 18px;
  transition: all 0.3s ease;
  z-index: 2;
}

.mdFormControl {
  width: 100%;
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 16px 16px 16px 52px;
  font-size: 16px;
  color: var(--text-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.mdFormControl::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.mdFormControl:focus {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--primary-color);
  box-shadow: 
    0 0 0 4px rgba(99, 102, 241, 0.1),
    0 4px 12px rgba(99, 102, 241, 0.15);
  outline: none;
  transform: translateY(-1px);
}

.mdInputGroup:focus-within i {
  color: var(--primary-dark);
  transform: translateY(-50%) scale(1.1);
}

.mdLoginButton {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
  position: relative;
  overflow: hidden;
}

.mdLoginButton::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.mdLoginButton:hover::before {
  left: 100%;
}

.mdLoginButton:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}

.mdLoginButton:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.mdLoginButton:focus {
  outline: none;
  box-shadow: 
    0 4px 8px rgba(59, 130, 246, 0.2),
    0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* #endregion */

/* #region Footer */

.mdDashboardFooter {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 12px 0;
  background: 
    linear-gradient(135deg, 
      rgba(248, 250, 252, 0.95) 0%, 
      rgba(241, 245, 249, 0.97) 49%, 
      rgba(241, 245, 249, 0.97) 50%, 
      rgba(238, 242, 255, 0.95) 51%, 
      rgba(237, 233, 254, 0.95) 100%
    ),
    linear-gradient(135deg, #ffffff 0%, #f8fafc 25%, #f1f5f9 75%, #e2e8f0 100%);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(99, 102, 241, 0.1);
  text-align: center;
  z-index: 10;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.04);
}

.mdFooterContent {
  color: var(--text-light);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.mdFooterContent span {
  margin-right: 4px;
  color: var(--primary-color);
  font-weight: 600;
}

/* #endregion */

/* #region Responsive */

@media (max-width: 768px) {
  .mdNavbar {
    padding: 12px 20px;
    flex-direction: column;
    gap: 12px;
  }
  
  .mdContainer {
    padding: 16px;
    padding-top: 120px;
  }
  
  .mdLoginCard {
    padding: 32px 24px;
    max-width: 80%;
    margin: 0 16px;
  }
  
  .mdDateTime {
    width: 100%;
    max-width: 300px;
    min-width: 260px;
  }
}

@media (max-width: 480px) {
  body, html {
    overflow-y: auto;
  }
  
  .mdContainer {
    height: auto;
    min-height: 100vh;
  }
  
  .mdLoginCard {
    margin: 8px;
    padding: 24px 20px;
    width: 100%;
  }

  .mdLogoArea img {
    height: 30px;
  }
  
  .mdLoginHeader h2 {
    font-size: 20px;
  }
  
  .mdFormControl {
    padding: 14px 14px 14px 48px;
    font-size: 16px;
  }
  
  .mdLoginButton {
    padding: 14px 20px;
  }
}

/* #endregion */