/* Reset & Box-Sizing */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

/* Üstte ekstra boşluk! */
.login-form {
    padding-top: 28px;
}

@media (max-width: 480px) {
    .login-form {
        padding-top: 16px !important;
    }
}

body {
  background-color: #e0f7fa;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  position: relative;
  overflow: auto;
}

/* Arka plan deseni (şeffaf) */
    body::before {
        content: "";
        position: fixed;
        inset: 0;
        background-image: url('/images/mtu-bg-logo.png');
        background-repeat: repeat;
        background-size: 80px;
        background-position: center;
        opacity: 0.03;
        pointer-events: none;
        z-index: -1;
    }

/* Kutu Konteyner */
.login-container {
  width: 100%;
  max-width: 450px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 51, 102, 0.2);
  overflow: hidden;
  margin: 20px;
  position: relative;
}

/* Başlık + Logo */
.login-header {
  background: #003366;
  color: white;
  padding: 25px;
  text-align: center;
}
.login-header .logo {
  width: 100px; /* logoyu biraz büyüttük */
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}
.login-header .logo:hover {
  transform: scale(1.05);
}
.login-header h1 {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Sekmeler */
.login-tabs {
  display: flex;
  gap: 10px;
  padding: 20px 30px 0;
}
.tab-btn {
  flex: 1;
  padding: 10px 0;
  background: #f3f4f6;
  color: #003366;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.tab-btn.active {
  background: #f7c948;
  color: #003366;
  box-shadow: 0 2px 4px rgba(247, 201, 72, 0.3);
}
.tab-btn:not(.active):hover {
  background: #e5e7eb;
}

/* Form Kutusu */
.tab-content {
  display: none;
  padding: 20px 30px 30px;
  animation: fadeIn 0.3s ease both;
}
.tab-content.active {
  display: block;
}

.login-form .form-group {
  position: relative;
  margin-bottom: 20px;
}
.login-form label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: #003366;
  font-weight: 500;
  font-size: 0.9rem;
}
.login-form input {
  width: 100%;
  padding: 12px 15px;
  padding-right: 40px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: all 0.3s;
}
.login-form input:focus {
  border-color: #003366;
  box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
  outline: none;
}

/* Şifre Göster/Gizle İkonu */
.toggle-password {
  position: absolute;
  right: 15px;
  top: 55%;                   
  cursor: pointer;
  color: #666;
  font-size: 1.1rem;
  transition: color 0.2s;
}

/* Giriş Butonu */
.login-btn {
  width: 100%;
  padding: 12px;
  background: #003366;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 10px;
}
.login-btn:hover {
  background: #002b57;
  transform: translateY(-2px);
}

/* Form Alt Linkleri */
.form-footer {
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}
.form-footer a {
  color: #003366;
  text-decoration: none;
  transition: all 0.3s;
}
.form-footer a:hover {
  text-decoration: underline;
}

/* Üniversite Bilgisi */
.university-info {
  text-align: center;
  padding: 15px;
  background: #f9f9f9;
  color: #666;
  font-size: 0.8rem;
}

/* Animasyon */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Responsive: Tablet & Mobil */
@media (max-width: 768px) {
  .login-header { padding: 20px; }
  .login-tabs { padding: 15px 20px 0; gap: 6px; }
  .tab-btn { font-size: 0.85rem; padding: 8px 0; }
  .tab-content { padding: 15px 20px 25px; }
}
@media (max-width: 480px) {
  .login-container { margin: 10px; max-width: 360px; }
  .login-header .logo { width: 80px; }
  .login-header h1 { font-size: 1.4rem; }
  .login-form input { padding: 10px 12px; }
  .toggle-password { top: 36px; right: 12px; }
  .login-btn { padding: 10px; font-size: 0.95rem; }
  .form-footer { flex-direction: column; gap: 8px; text-align: center; }
}
