/* Auth Page Design System Integration */
:root {
  /* Auth-specific theme using design system colors */
  --auth-primary: var(--md-primary);
  --auth-primary-light: var(--md-primary-light);
  --auth-primary-dark: var(--md-primary-dark);
  --auth-bg: var(--md-gray-900);
  --auth-text: var(--md-gray-50);
  --auth-text-light: var(--md-gray-100);
  --auth-text-muted: var(--md-gray-400);
  --auth-border: var(--md-gray-600);
  --auth-error: var(--md-danger);
  --auth-success: var(--md-success);
  --auth-glass-bg: rgba(31, 41, 55, 0.7);
  --auth-glass-border: rgba(255, 255, 255, 0.1);
  --auth-glass-shadow: rgba(0, 0, 0, 0.3);
  
  /* Legacy compatibility */
  --primary-color: var(--auth-primary);
  --primary-light: var(--auth-primary-light);
  --primary-dark: var(--auth-primary-dark);
  --secondary-color: var(--auth-bg);
  --text-color: var(--auth-text);
  --text-light: var(--auth-text-light);
  --text-muted: var(--auth-text-muted);
  --border-color: var(--auth-border);
  --error-color: var(--auth-error);
  --success-color: var(--auth-success);
  --glass-bg: var(--auth-glass-bg);
  --glass-border: var(--auth-glass-border);
  --glass-shadow: var(--auth-glass-shadow);
}

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

body,
html {
  height: 100%;
  font-family: "Montserrat", sans-serif;
  color: var(--text-light);
  overflow: hidden;
  background-color: #0f172a !important;
  position: relative;
}

.mdContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding: 20px;
  position: relative;
  background: #0f172a;
  overflow: hidden;
}

/* Static decorative shapes */
.mdStaticShape1 {
  position: absolute;
  top: 15%;
  left: 8%;
  width: 80px;
  height: 80px;
  background: rgba(147, 51, 234, 0.1);
  border-radius: 16px;
  transform: rotate(25deg);
  border: 1px solid rgba(147, 51, 234, 0.15);
  z-index: 0;
}

.mdStaticShape2 {
  position: absolute;
  top: 25%;
  right: 12%;
  width: 60px;
  height: 60px;
  background: rgba(99, 102, 241, 0.08);
  border-radius: 50%;
  border: 1px solid rgba(99, 102, 241, 0.12);
  z-index: 0;
}

.mdStaticShape3 {
  position: absolute;
  bottom: 20%;
  left: 15%;
  width: 100px;
  height: 100px;
  background: rgba(236, 72, 153, 0.06);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  z-index: 0;
}

.mdStaticShape4 {
  position: absolute;
  bottom: 30%;
  right: 20%;
  width: 40px;
  height: 40px;
  background: rgba(20, 184, 166, 0.08);
  border-radius: 6px;
  transform: rotate(45deg);
  border: 1px solid rgba(20, 184, 166, 0.12);
  z-index: 0;
}

.mdStaticShape5 {
  position: absolute;
  top: 50%;
  left: 5%;
  width: 2px;
  height: 120px;
  background: linear-gradient(to bottom, rgba(147, 51, 234, 0.2), transparent);
  border-radius: 2px;
  z-index: 0;
}

/* Modern animasyonlu arka plan şekilleri */
.mdContainer::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.12) 0%, rgba(99, 102, 241, 0.08) 40%, transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
}

.mdContainer::after {
  content: "";
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, rgba(20, 184, 166, 0.06) 50%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
}

/* Dekoratif şekiller */
.mdDecorativeShape {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.4;
  z-index: -1;
}

.mdShape1 {
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.6), rgba(236, 72, 153, 0.3));
  top: -30px;
  right: -30px;
  animation: float 8s ease-in-out infinite;
}

.mdShape2 {
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.5), rgba(56, 189, 248, 0.2));
  bottom: -20px;
  left: 10%;
  animation: float 10s ease-in-out infinite reverse;
}

.mdShape3 {
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.4), rgba(168, 85, 247, 0.2));
  top: 30%;
  left: -20px;
  animation: float 12s ease-in-out infinite 1s;
}

@keyframes float {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(10px, -10px) rotate(5deg); }
  50% { transform: translate(0, 5px) rotate(0deg); }
  75% { transform: translate(-10px, -5px) rotate(-5deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes pulse {
  0% {
    transform: scale(1) rotate(0deg);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.5) rotate(180deg);
    opacity: 0.8;
  }
  100% {
    transform: scale(1) rotate(360deg);
    opacity: 0.5;
  }
}

.mdNavbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background-color: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(71, 85, 105, 0.2);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .mdNavbar {
    padding: 15px 20px;
    flex-direction: column;
    gap: 15px;
  }
}

.mdContainer {
  padding-top: 60px; /* Navbar yüksekliği kadar padding eklendi */
}

@media (max-width: 768px) {
  .mdContainer {
    padding-top: 110px; /* Navbar yüksekliği arttığı için padding de arttırıldı */
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (max-width: 480px) {
  body, html {
    overflow-y: auto; /* Mobil cihazlarda scroll etmeye izin ver */
  }
  
  .mdContainer {
    height: auto;
    min-height: 100vh;
  }
}

.mdBackButton {
  background: rgba(142, 84, 233, 0.1);
  border: 1px solid rgba(142, 84, 233, 0.3);
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.mdBackButton:hover {
  background: rgba(142, 84, 233, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(142, 84, 233, 0.2);
}

.mdBackButtonIcon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  color: rgba(142, 84, 233, 0.9);
}

.mdBackButtonText {
  position: relative;
  top: 1px;
}

.mdDateTime {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  text-align: center;
  letter-spacing: 1px;
  width: 375px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(142, 84, 233, 0.1);
  border-radius: 12px;
  padding: 8px 16px;
  border: 1px solid rgba(142, 84, 233, 0.2);
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .mdDateTime {
    width: 100%;
    max-width: 375px;
  }
}

.mdDateTime:hover {
  background: rgba(142, 84, 233, 0.15);
  box-shadow: 0 5px 15px rgba(142, 84, 233, 0.15);
}

.mdDateTimeIcon {
  color: rgba(142, 84, 233, 0.9);
  margin-right: 10px;
  font-size: 16px;
  flex-shrink: 0;
}

#currentDateTimeText {
  font-weight: 500;
  width: 375px;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 768px) {
  #currentDateTimeText {
    width: 100%;
    font-size: 13px;
  }
}

.mdLoginCard {
  width: 100%;
  max-width: 520px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(71, 85, 105, 0.3);
  padding: 40px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .mdLoginCard {
    padding: 30px 20px;
    margin: 0 15px;
  }
}

@media (max-width: 480px) {
  .mdLoginCard {
    padding: 25px 15px;
  }
}

.mdLoginCard:hover {
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(100, 116, 139, 0.35);
  background: rgba(15, 23, 42, 0.98);
  transform: translateY(-1px);
}

.mdLoginCard::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(100, 116, 139, 0.05) 0%,
    rgba(71, 85, 105, 0.03) 100%
  );
  border-radius: 24px;
  z-index: -1;
  opacity: 1;
}

.mdLoginCard::after {
  display: none;
}

.mdLoginCard:hover::before {
  background: linear-gradient(
    135deg,
    rgba(100, 116, 139, 0.06) 0%,
    rgba(71, 85, 105, 0.03) 100%
  );
}

@keyframes borderLight {
  0% {
    background-position: 0% 0%;
    clip-path: inset(0 calc(100% - 3px) calc(100% - 3px) 0);
  }
  12.5% {
    background-position: 50% 0%;
    clip-path: inset(0 0 calc(100% - 3px) 0);
  }
  25% {
    background-position: 100% 0%;
    clip-path: inset(0 0 calc(100% - 3px) calc(100% - 3px));
  }
  37.5% {
    background-position: 100% 50%;
    clip-path: inset(0 0 0 calc(100% - 3px));
  }
  50% {
    background-position: 100% 100%;
    clip-path: inset(calc(100% - 3px) 0 0 calc(100% - 3px));
  }
  62.5% {
    background-position: 50% 100%;
    clip-path: inset(calc(100% - 3px) 0 0 0);
  }
  75% {
    background-position: 0% 100%;
    clip-path: inset(calc(100% - 3px) calc(100% - 3px) 0 0);
  }
  87.5% {
    background-position: 0% 50%;
    clip-path: inset(0 calc(100% - 3px) 0 0);
  }
  100% {
    background-position: 0% 0%;
    clip-path: inset(0 calc(100% - 3px) calc(100% - 3px) 0);
  }
}

@keyframes rotateGradient {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.mdLogoArea {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  position: relative;
}

.mdLogoArea::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 25%;
  width: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(142, 84, 233, 0.5), transparent);
}

.mdLogoArea img {
  height: 80px;
  filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.2));
  transition: all 0.5s ease;
}

.mdLogoArea:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.3));
}

.mdLoginHeader {
  text-align: center;
  margin-bottom: 35px;
  position: relative;
}

.mdLoginHeader h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
  color: #f1f5f9;
  display: inline-block;
}


@media (max-width: 480px) {
  .mdLoginHeader h2 {
    font-size: 24px;
  }
  
  .mdLoginHeader p {
    font-size: 14px;
  }
  
  .mdLogoArea img {
    height: 60px;
  }
  
  .mdFormGroup label {
    font-size: 14px;
  }
  
  .mdFormControl {
    padding: 12px 15px;
    font-size: 14px;
  }
  
  .mdLoginButton {
    padding: 12px 20px;
    font-size: 15px;
  }
  
  .mdFormGroup {
    margin-bottom: 20px;
  }
}

.mdLoginHeader p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  line-height: 1.6;
  max-width: 90%;
  margin: 0 auto;
  position: relative;
}

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

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

.mdInputGroup {
  position: relative;
}

.mdInputGroup i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(168, 85, 247, 0.8);
  font-size: 18px;
  transition: all 0.3s ease;
}

.mdInputGroup .password-toggle {
  left: auto;
  right: 18px;
  cursor: pointer;
  opacity: 0.7;
}

.mdInputGroup .password-toggle:hover {
  opacity: 1;
  color: rgba(142, 84, 233, 1);
}

.mdInputGroup:focus-within i {
  color: rgba(168, 85, 247, 1);
  transform: translateY(-50%) scale(1.1);
}

.mdFormControl {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px 18px 18px 50px;
  font-size: 15px;
  color: var(--text-light);
  transition: all 0.3s ease;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  letter-spacing: 0.5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1),
              inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.mdFormControl::placeholder {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
}

.mdFormControl:focus {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.2),
              inset 0 0 0 1.5px rgba(168, 85, 247, 0.3),
              inset 0 0 30px rgba(168, 85, 247, 0.05);
  outline: none;
  transform: translateY(-2px);
}

.mdFormCheck {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}

.mdFormCheck input {
  margin-right: 10px;
  accent-color: var(--primary-light);
  width: 16px;
  height: 16px;
}

.mdFormCheck label {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.mdLoginButton {
  display: block;
  width: 100%;
  background: #3b82f6;
  border: none;
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
  position: relative;
  overflow: hidden;
  margin-top: 10px;
}

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

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

.mdLoginButton:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
}

/* Giriş formu hata mesajı stili */
.mdLoginError {
  display: none;
  align-items: center;
  background-color: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  padding: 10px 15px;
  margin-bottom: 20px;
  color: #fca5a5;
  font-size: 14px;
  animation: fadeIn 0.3s ease-in-out;
}

.mdLoginError i {
  margin-right: 10px;
  color: #ef4444;
  font-size: 16px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.mdLoginFooter {
  text-align: center;
  margin-top: 25px;
}

.mdLoginFooter p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-bottom: 8px;
}

.mdLoginFooter a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.mdLoginFooter a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

.mdSocialLogin {
  margin-top: 30px;
  text-align: center;
}

.mdSocialLogin p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 15px;
  position: relative;
  font-size: 14px;
}

.mdSocialLogin p::before,
.mdSocialLogin p::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.2);
}

.mdSocialLogin p::before {
  left: 0;
}

.mdSocialLogin p::after {
  right: 0;
}

.mdSocialButtons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.mdSocialButton {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  font-size: 18px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1),
              inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.mdSocialButton:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2),
              inset 0 0 0 1.5px rgba(255, 255, 255, 0.15);
  color: rgba(142, 84, 233, 1);
}

.mdFloatingShapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

/* Modern şekiller */
.mdShape {
  position: absolute;
  backdrop-filter: blur(3px);
  animation: float 15s infinite ease-in-out;
}

/* Daire */
.mdShape:nth-child(1) {
  width: 150px;
  height: 150px;
  top: 15%;
  left: 8%;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(71, 118, 230, 0.1), rgba(142, 84, 233, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.05);
  animation-delay: 0s;
  box-shadow: 0 0 30px rgba(71, 118, 230, 0.1);
}

/* Üçgen */
.mdShape:nth-child(2) {
  width: 0;
  height: 0;
  top: 25%;
  right: 12%;
  border-left: 100px solid transparent;
  border-right: 100px solid transparent;
  border-bottom: 180px solid rgba(142, 84, 233, 0.07);
  background: transparent;
  animation-delay: 2s;
  filter: drop-shadow(0 0 20px rgba(142, 84, 233, 0.1));
  transform-origin: center bottom;
}

/* Kare */
.mdShape:nth-child(3) {
  width: 120px;
  height: 120px;
  bottom: 20%;
  left: 12%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  transform: rotate(45deg);
  animation-delay: 4s;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.05);
}

/* Altıgen */
.mdShape:nth-child(4) {
  width: 100px;
  height: 110px;
  bottom: 15%;
  right: 15%;
  background: rgba(71, 118, 230, 0.05);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  animation-delay: 6s;
  box-shadow: 0 0 30px rgba(71, 118, 230, 0.1);
}

/* Yarım daire */
.mdShape:nth-child(5) {
  width: 200px;
  height: 200px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at center, rgba(142, 84, 233, 0.03) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 20s infinite alternate;
  opacity: 0.7;
}

/* Çizgi */
.mdShape:nth-child(6) {
  width: 3px;
  height: 200px;
  top: 10%;
  right: 30%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.05), transparent);
  transform-origin: center top;
  animation: swing 10s infinite ease-in-out;
  border-radius: 3px;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(10deg);
  }
}

@keyframes swing {
  0%, 100% {
    transform: rotate(-5deg);
  }
  50% {
    transform: rotate(5deg);
  }
}

/* Footer Stilleri */
.mdDashboardFooter {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 8px 0;
  background-color: rgba(10, 17, 40, 0.7);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(142, 84, 233, 0.2);
  text-align: center;
  z-index: 10;
}

.mdFooterContent {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.mdFooterContent span {
  margin-right: 5px;
  color: rgba(142, 84, 233, 0.9);
}

@media (max-width: 576px) {
  .mdLoginCard {
    padding: 30px 20px;
  }

  .mdLoginHeader h2 {
    font-size: 24px;
  }

  .mdFormControl {
    padding: 12px 12px 12px 40px;
  }

  .mdLoginButton {
    padding: 12px;
  }
  
  .mdDashboardFooter {
    padding: 6px 0;
  }
  
  .mdFooterContent {
    font-size: 11px;
  }
}
