/* === Reset === */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Outfit', sans-serif;
  background: url('int15.jpeg') no-repeat center center fixed;
  background-size: cover;
  background-color: #f5f5f5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* === Header & Nav === */
.header-small {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  background: #fff;
}

.logo { font-size: 1.6rem; font-weight: 700; color: #222; letter-spacing: 1px; }

.nav-links { list-style: none; display: flex; gap: 2rem; }
.nav-links a {
  text-decoration: none; font-weight: 500; color: #222;
  border-bottom: 2px solid transparent; transition: all .3s ease;
}
.nav-links a:hover { color: #e6c200; border-bottom-color: #ffd700; }
.nav-links a.active { color: #000; border-bottom-color: #ffd700; font-weight: 600; }

/* === Auth layout === */
.auth-section {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.auth-container {
  background: rgba(255,255,255,.92);
  padding: 2.5rem 3rem;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,.08);
  width: 100%;
  max-width: 460px;
  animation: fadeIn .8s ease;
  text-align: center;
}

.auth-container h2 {
  font-size: 2rem;
  margin-bottom: 1.25rem;
  color: #222;
}

.hint { font-weight: 400; color: #666; font-size: .9rem; }

/* === Form elements === */
.input-group { margin-bottom: 1.25rem; text-align: left; }
label { display: block; font-weight: 600; margin-bottom: .45rem; color: #333; }

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: .8rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  background: #fff;
  outline: none;
  transition: border-color .2s ease;
}
input:focus { border-color: #ffd700; }

.password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.password-wrap .toggle {
  position: absolute;
  right: .5rem;
  background: transparent;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  padding: .25rem .5rem;
}

.terms {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .95rem;
  margin: .25rem 0 1rem;
  color: #333;
}
.terms a { color: #003366; text-decoration: underline; }

/* === Button === */
.cta, button[type="submit"] {
  width: 100%;
  padding: .9rem 1.5rem;
  border: none;
  border-radius: 8px;
  background: #ffd700;
  color: #000;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .3s ease, background .3s ease;
  margin-top: .25rem;
}
.cta:hover { background: #e6c200; transform: scale(1.04); }

/* === Messages === */
.error-message {
  color: #d60000;
  font-size: .95rem;
  margin-top: .6rem;
  text-align: left;
  min-height: 1.2rem;
  animation: fadeIn .2s ease;
}
.switch { margin-top: 1rem; color: #333; }
.switch a { color: #003366; text-decoration: underline; }

/* === Animations === */
@keyframes fadeIn { from {opacity:0; transform: translateY(6px);} to {opacity:1; transform: translateY(0);} }

/* === Responsive === */
@media (max-width: 768px) {
  .nav { flex-direction: column; gap: 1rem; align-items: flex-start; }
  .nav-links { flex-direction: column; width: 100%; gap: .75rem; }
  .auth-container { padding: 2rem 1.5rem; }
}
