@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@200;300;400;500;600&family=DM+Sans:wght@400;600&display=swap');

/* Genel stiller */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Unbounded', cursive;
}

body {
  background: #f5f7fa;
  color: #333;
}

/* Ana container */
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 73px);
  padding: 3rem 2rem;
  gap: 2rem;
  flex-wrap: wrap;
  background-image: url('/websites-images/background6.webp'); /* veya .webp, .png uzantısına göre */
  background-size: cover;           /* Görseli kapsayacak şekilde ölçekler */
  background-position: center;     /*  Ortalar */
  background-repeat: no-repeat;     /* Tekrar etmesini engeller */
  background-attachment: fixed;
}

/* Görsel alanı */
.img-section {
  flex: 1;
  max-width: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.img-section img {
  width: 100%;
  /* max-width: 400px; */
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.img-section img:hover {
  transform: scale(1.02);
}

/* Form alanı */
.form-section {
  flex: 1;
  max-width: 450px;
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.form-section h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.form-section label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-section input {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  transition: border-color 0.2s ease;
}

.form-section input:focus {
  border-color: #007bff;
  outline: none;
}

button#button-outline {
  width: 100%;
  padding: 0.75rem;
  background-color: #1e88e5;
  border: none;
  color: white;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  /* margin-top: 2rem; */
}

button#button-outline:hover {
  background-color: #1565c0;
}

#forget-password {
  display: block;
  text-align: center;
  margin-top: 1rem;
  color: #1e88e5;
  text-decoration: none;
  font-size: 0.9rem;
}

#forget-password:hover {
  text-decoration: underline;
}

/* Rol seçimi */
.role-section {
  max-width: 400px;
  width: 100%;
  margin-top: 2rem;
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.role-section h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.role-section .role-select {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.role-section .canvasButton {
  width: 100%;
  padding: 0.75rem;
  background-color: #43a047;
  border: none;
  color: white;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
}

.role-section .canvasButton:hover {
  background-color: #388e3c;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #ff5252;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
/* @media (max-width: 768px) {
  .container {
    flex-direction: column;
    align-items: stretch;
  }

  .img-section img {
    max-width: 100%;
    margin-bottom: 2rem;
  }
} */

@media (max-width: 768px) {
  .container {
    min-height: auto; /* İçeriğe göre yükseklik alsın */
    height: 100vh;    /* veya tam ekran yüksekliği */
    padding: 2rem 1rem;
    background-attachment: scroll;
    background-position: center top;
  }

  .img-section {
    max-width: 100%;
    margin-bottom: 2rem;
  }

  .img-section img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  }

  .form-section {
    max-width: 100%;
    padding: 2rem 1.5rem; /* Daha dar padding */
    border-radius: 8px;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
  }

  .dropdown {
    margin-left: 0; 
    margin-right: 3rem;     /* Varsayılan boşluk varsa kaldır */
    padding-left: 1rem;  /* İstersen biraz iç boşluk ver */
    text-align: left;    /* Eğer gerekiyorsa */
  }

  /* Eğer direkt select elemanını da ayarlamak istersen */
  .dropdown select {
    margin-left: 0;
    padding-left: 0.5rem;
  }
}
