@import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap");

:root {
  --blue: #0b63a6;
  --dark: #072d4b;
  --accent: #ffffff;
  --gold: rgba(244, 180, 0, 0.9);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: url("../img/wallpaper2you_399418.jpg") no-repeat center center /
    cover;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  color: white;
}

.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  backdrop-filter: blur(12px);
  background: rgba(11, 99, 166, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Scroll olunca arkası maviye döner */
.main-header.scrolled {
  background: var(--blue);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Logo */
.logo-img {
  margin-left: 50%;
  height: 60px;
  width: auto;
}

/* Menü */
.main-nav {
  display: flex;
  align-items: center;
}

.main-nav__items {
  list-style: none;
  display: flex;
  gap: 30px;
}

.main-nav__item a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  transition: color 0.3s;
  padding: 0;
}

.main-nav__text {
  margin-top: 1.25%;
}

.main-nav__item a:hover {
  color: var(--gold);
}

/* Başvur butonu */
.btn.btn-secondary {
  background: var(--dark);
  color: var(--gold);
  padding: 8px 16px;
  margin-right: 50px;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.3s, transform 0.2s;
}

.btn.btn-secondary:hover {
  background: var(--gold);
  color: var(--dark);
  transform: translateY(-2px);
}

/* Hamburger menü */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  margin-right: 3%;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobil görünüm */
@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 70%;
    height: 100vh;
    background: rgba(7, 45, 75, 0.92);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 30px;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
  }

  .main-nav.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: all;
  }

  .main-nav__items {
    flex-direction: column;
    gap: 25px;
  }

  .hamburger {
    display: flex;
    position: relative;
    z-index: 2000;
  }

  /* Hamburger aktifken */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
  }
}

/* Ana kapsayıcı */
.container {
  width: 100%;
  min-height: 100vh;
  padding: 80px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Form kutusu */
.login {
  width: 100%;
  max-width: 450px;
  background: url("../img/pexels-josh-hild-1270765-3602154.jpg") center/cover
    no-repeat;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Form içeriği */
form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 40px 30px;
  backdrop-filter: brightness(40%);
}

h1 {
  font-weight: 700;
  font-size: 28px;
  text-align: center;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
  margin-bottom: 40px;
}

label {
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
  padding-left: 10px;
}

input {
  background: rgba(255, 255, 255, 0.25);
  height: 42px;
  border-radius: 20px;
  border: none;
  padding: 0 18px;
  color: white;
  font-size: 15px;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

button {
  background: rgb(45, 126, 231);
  transition: 0.3s;
  height: 42px;
  border-radius: 40px;
  border: none;
  color: white;
  margin-top: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  background: rgb(35, 90, 200);
}

/* Mesajlar */
.message {
  font-weight: bold;
  font-size: 18px;
  text-align: center;
  margin-bottom: 20px;
}

.error {
  color: #ff6b6b;
}

.success {
  color: lightgreen;
}

/* ===================== */
/* 📱 Mobil Uyum (max 768px) */
/* ===================== */
@media (max-width: 768px) {
  body {
    background-position: center;
  }

  .container {
    padding: 60px 15px;
  }

  .login {
    width: 100%;
    max-width: 90%;
  }

  form {
    padding: 30px 20px;
  }

  h1 {
    font-size: 22px;
    margin-bottom: 25px;
  }

  label {
    font-size: 10px;
    letter-spacing: 1px;
  }

  input {
    font-size: 14px;
    height: 38px;
  }

  button {
    font-size: 14px;
    height: 38px;
  }
}
