/* Əsas Stil */
body {
  margin: 0;
  background: linear-gradient(135deg, #007BFF, #00A8FF);
  background-attachment: fixed;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: white;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Konteyner */
.container {
  display: flex;
  min-height: calc(100vh - 120px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  flex-grow: 1;
}

/* Logo Stili */
.logo-container {
  text-align: center;
  margin-bottom: 40px;
}

.logo-link img {
  max-width: 100%;
  height: auto;
  transition: transform 0.4s ease;
  width: 450px;
}

.logo-link img:hover {
  transform: scale(1.05);
}

/* Panellər */
.left-panel, 
.right-panel {
  flex: 1;
  padding: 20px;
  max-width: 100%;
}

.left-panel {
  animation: slideFadeIn 1s ease forwards;
  opacity: 0;
  transform: translateX(-30px);
}

/* Sol Panel Məzmunu */
.left-panel h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 16px;
  line-height: 1.3;
}

.left-panel p {
  font-size: clamp(0.9rem, 2vw, 1rem);
  margin-bottom: 24px;
  line-height: 1.6;
}

.left-panel .back-btn {
  display: inline-block;
  background: white;
  color: #007BFF;
  padding: 10px 22px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.left-panel .back-btn:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Login Kartı */
.login-card {
  background: #fff;
  color: #121212;
  width: 100%;
  max-width: 400px;
  padding: clamp(20px, 5vw, 40px);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  transition: all 0.4s ease;
  margin: 0 auto;
}

.login-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.login-card h2 {
  margin-bottom: 24px;
  font-size: clamp(1.3rem, 3vw, 1.5rem);
}

/* Form Elementləri */
.input-group {
  margin-bottom: 18px;
}

.input-group label {
  display: block;
  margin-bottom: 6px;
  color: #333;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.input-group input {
  width: 100%;
  padding: clamp(10px, 3vw, 12px);
  border: 1.5px solid #ccc;
  border-radius: 8px;
  font-size: clamp(0.9rem, 2vw, 1rem);
  transition: border-color 0.3s ease;
}

.input-group input:focus {
  outline: none;
  border-color: #007BFF;
  box-shadow: 0 0 0 3px rgba(0,123,255,0.2);
}

/* Seçimlər */
.options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  font-size: clamp(0.8rem, 2vw, 0.9rem);
}

.options label {
  color: #555;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.options .forgot-password {
  color: #007BFF;
  text-decoration: none;
  transition: all 0.3s ease;
}

.options .forgot-password:hover {
  text-decoration: underline;
  color: #0056b3;
}

/* Düymələr */
.btn-submit {
  width: 100%;
  padding: clamp(10px, 3vw, 12px);
  border: none;
  border-radius: 30px;
  background: #007BFF;
  color: white;
  font-weight: 700;
  cursor: pointer;
  font-size: clamp(0.95rem, 2vw, 1rem);
  transition: all 0.3s ease;
}

.btn-submit:hover {
  background: #0056b3;
  transform: scale(1.02);
}

/* Alternativ Giriş */
.alternative-login {
  margin-top: 24px;
  text-align: center;
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  color: #555;
  position: relative;
}

.alternative-login::before,
.alternative-login::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background: #ddd;
}

.alternative-login::before {
  left: 0;
}

.alternative-login::after {
  right: 0;
}

/* Sosial Düymələr */
.social-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px solid #ccc;
  background: transparent;
  color: #444;
  padding: 10px 18px;
  border-radius: 30px;
  cursor: pointer;
  font-size: clamp(0.8rem, 2vw, 0.85rem);
  transition: all 0.3s ease;
  flex: 1;
  min-width: 120px;
}

.social-btn img {
  width: 20px;
  height: 20px;
}

.social-btn:hover {
  background: #007BFF;
  color: #fff;
  border-color: #007BFF;
  transform: translateY(-2px);
}

.gmail-btn:hover {
  background: #db4437;
  border-color: #db4437;
}

.facebook-btn:hover {
  background: #3b5998;
  border-color: #3b5998;
}

/* Animasiya */
@keyframes slideFadeIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Tablet və Kiçik Ekranlar (900px-dən kiçik) */
@media (max-width: 900px) {
  .container {
    flex-direction: column;
    text-align: center;
    padding-top: 40px;
    padding-bottom: 60px;
  }

  .left-panel {
    order: 1;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .right-panel {
    order: 2;
    width: 100%;
  }

  .logo-link img {
    width: clamp(200px, 60vw, 350px);
  }

  .social-buttons {
    flex-direction: row;
  }

  .social-btn {
    min-width: auto;
  }
}

/* Kiçik Telefonlar (600px-dən kiçik) */
@media (max-width: 600px) {
  .container {
    padding: 15px;
    padding-top: 30px;
  }

  .login-card {
    padding: 25px 15px;
    border-radius: 12px;
  }

  .social-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .social-btn {
    width: 100%;
  }

  .options {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .alternative-login::before,
  .alternative-login::after {
    width: 25%;
  }
}

/* Çox Kiçik Ekranlar (400px-dən kiçik) */
@media (max-width: 400px) {
  .left-panel h1 {
    font-size: 1.6rem;
  }

  .login-card h2 {
    font-size: 1.2rem;
  }

  .alternative-login::before,
  .alternative-login::after {
    width: 20%;
  }
}


/* Inputlar üçün universal stil */
input, textarea, select {
  max-width: 100%;
  box-sizing: border-box;
}

/* Xüsusi login formu inputları */
.login-card .input-group input {
  width: 100%;
  padding: 12px;
  border: 1.5px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
}

/* Mobil üçün optimizasiya */
@media (max-width: 600px) {
  .login-card {
    width: calc(100% - 20px); /* Yanlarda 10px boşluq */
    margin: 0 auto;
    padding: 15px;
  }
  
  .input-group input {
    padding: 10px 12px;
  }
}

@media (max-width: 400px) {
  .login-card {
    width: calc(100% - 10px); /* Yanlarda 5px boşluq */
    padding: 12px;
  }
  
  .input-group input {
    padding: 8px 10px;
    font-size: 0.9rem;
  }
}