* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: #fff;
}

.home-top-nav {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  padding: 12px 16px;
  background: rgba(5, 14, 26, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

.home-top-nav a {
  color: #c8e9ff;
  font-weight: 600;
  text-decoration: none;
}

.home-top-nav a:hover {
  color: #fff;
  text-decoration: underline;
}

.tempo-link-bar {
  text-align: center;
  margin: 0 0 18px;
}

.tempo-link-bar a {
  color: #bfe6ff;
  font-weight: 600;
  font-size: 14px;
}

.site-footer {
  width: 100%;
  padding: 22px 18px 28px;
  text-align: center;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(5, 14, 26, 0.55);
}

.site-footer a {
  color: #c8e9ff;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  color: #fff;
}

.home {
  min-height: 100vh;
  padding: 18px 20px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-image:
    linear-gradient(to bottom, rgba(7, 15, 28, 0.34), rgba(7, 15, 28, 0.52)),
    url("anapng/foto-intro.jpg");
  background-size: cover;
  background-position: center;
}

.top-logos {
  width: min(980px, 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: 8px 0 22px;
}

.main-logo {
  width: 120px;
  max-width: 36vw;
}

.partner-logo {
  width: auto;
  max-width: min(320px, 88vw);
  height: 56px;
  object-fit: contain;
}

.boats-grid {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 18px 22px;
  margin-top: 6px;
}

.boat-item {
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transition: transform 0.2s ease;
}

.boat-item:hover {
  transform: translateY(-3px);
}

.thumb {
  width: 100%;
  max-width: 186px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.thumb img {
  width: 94%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.35));
}

.label {
  margin-top: 9px;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.boat-item:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
  border-radius: 8px;
}

@media (max-width: 960px) {
  .boats-grid {
    grid-template-columns: repeat(3, minmax(90px, 1fr));
  }
}

@media (max-width: 700px) {
  .top-logos {
    flex-direction: column;
    gap: 10px;
  }

  .partner-logo {
    max-width: min(280px, 90vw);
    height: 48px;
  }

  .boats-grid {
    grid-template-columns: repeat(2, minmax(90px, 1fr));
  }
}

@keyframes login-card-enter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes login-rise-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background-image:
    linear-gradient(to bottom, rgba(7, 15, 28, 0.55), rgba(7, 15, 28, 0.78)),
    url("anapng/foto-intro.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

@media (max-width: 720px) {
  .login-body {
    background-attachment: scroll;
  }
}

.login-wrap {
  width: min(400px, 100%);
  padding: 28px 26px 32px;
  border-radius: 14px;
  background: rgba(12, 22, 38, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: login-card-enter 0.5s ease-out backwards;
}

.login-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.login-logo-capelli {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
  animation: login-rise-in 0.45s ease-out 0.06s backwards;
}

.login-logo-divider {
  width: 1px;
  height: 72px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(255, 255, 255, 0.28),
    transparent
  );
  flex-shrink: 0;
  animation: login-rise-in 0.45s ease-out 0.1s backwards;
}

.login-logo-east-frame {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 72px;
  padding: 5px 8px;
  border-radius: 12px;
  background: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    0 4px 14px rgba(0, 0, 0, 0.18);
  animation: login-rise-in 0.45s ease-out 0.14s backwards;
}

.login-logo-east {
  display: block;
  width: auto;
  max-width: min(200px, 58vw);
  max-height: 62px;
  height: auto;
  object-fit: contain;
}

.login-title {
  margin: 0 0 20px;
  font-size: 1.28rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.01em;
  color: #f2f7fc;
  animation: login-rise-in 0.45s ease-out 0.18s backwards;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: login-rise-in 0.48s ease-out 0.22s backwards;
}

.login-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}

.login-label input {
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  font-size: 15px;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease,
    transform 0.18s ease;
}

.login-label input:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.11);
}

.login-label input:focus {
  outline: none;
  border-color: rgba(200, 233, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(120, 190, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
}

.login-error {
  min-height: 1.2em;
  margin: 0;
  font-size: 13px;
  color: #ffb4b4;
}

.login-submit {
  margin-top: 6px;
  padding: 13px 16px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(180deg, #2380cf 0%, #1a6fb8 55%, #155a9a 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.22s ease,
    filter 0.2s ease;
  box-shadow: 0 6px 20px rgba(26, 111, 184, 0.35);
}

.login-submit:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 10px 28px rgba(33, 128, 208, 0.42);
}

.login-submit:active {
  transform: translateY(0);
  box-shadow: 0 4px 14px rgba(26, 111, 184, 0.32);
}

@media (prefers-reduced-motion: reduce) {
  .login-wrap,
  .login-logo-capelli,
  .login-logo-divider,
  .login-logo-east-frame,
  .login-title,
  .login-form {
    animation: none !important;
  }

  .login-label input,
  .login-submit {
    transition: none !important;
  }

  .login-submit:hover,
  .login-submit:active {
    transform: none;
  }
}

.user-session-bar {
  width: min(980px, 100%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin: 0 0 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
}

.user-session-bar a {
  color: #c8e9ff;
  font-weight: 600;
  text-decoration: none;
}

.user-session-bar a:hover {
  text-decoration: underline;
  color: #fff;
}
