/* Fonts locals */
@font-face {
  font-family: 'Lucida Grande';
  src: url('/fonts/LucidaGrande.ttf') format('truetype');
}
@font-face {
  font-family: 'Myriad Pro';
  src: url('/fonts/Myriad Web Pro Regular.ttf') format('truetype');
}

/* Fons Aqua */
body {
  margin: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;

  background: repeating-linear-gradient(#F0F0F0, #F0F0F0 4px, #FFFFFF 4px, #FFFFFF 8px);
  font-family: "Lucida Grande", "Myriad Pro", sans-serif;
}

/* Contenidor general centrat */
.wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Títol fora del quadre */
.title {
  font-family: "Myriad Pro", "Lucida Grande", sans-serif;
  font-size: 28px;
  margin-left: 8px;
  margin-bottom: 6px;
  color: #000;
}

/* Caixa principal */
.login-box {
  width: 460px;
  padding: 26px;
  border: 2px solid #000;
  border-radius: 14px;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(3px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Labels i inputs macOS */
label {
  font-family: "Lucida Grande", "Myriad Pro", sans-serif;
  font-size: 15px;
}

input {
  padding: 6px 8px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #aaa;
  background: linear-gradient(#fcfcfc, #f2f2f2);
  box-shadow:
    inset 0 1px 2px rgba(0,0,0,.08),
    0 1px 0 rgba(255,255,255,.9);
  font-family: "Lucida Grande", sans-serif;
}

input:focus {
  outline: none;
  border-color: #6aa4ff;
  box-shadow:
    0 0 0 3px rgba(100,150,255,.25),
    inset 0 1px 2px rgba(0,0,0,.08);
}

/* Botó petit alineat a la dreta */
.button-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

/* BOTÓ MACOS GRIS AQUA (PETIT) */
.macbtn {
  -webkit-appearance: none;
  appearance: none;

  font-family: "Lucida Grande","Myriad Pro",sans-serif;
  height: 22px;
  min-width: 70px;
  padding: 0 14px;

  border-radius: 1000px;
  cursor: pointer;
  border: 1px solid rgba(0,0,0,0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;

  background:
    linear-gradient(rgba(160,160,160,0.65), rgba(255,255,255,0.65)),
    linear-gradient(rgba(255,255,255,0.45), rgba(255,255,255,0.08));

  box-shadow:
    0 0.375em 0.5em rgba(0,0,0,0.2),
    0 0.125em 0.125em rgba(0,0,0,0.18),
    inset 0 0.25em 0.25em rgba(0,0,0,0.35),
    inset 0 0.375em 0.5em 0.2em #DDDDDD;
}

/* Text botó */
.macbtn span {
  position: relative;
  top: -1px;
  font-size: 13px;
  letter-spacing: 0.02em;
  -webkit-text-stroke-width: 0.02em;
  -webkit-text-stroke-color: rgba(0,0,0,0.65);
  text-shadow: 0 0.25em 0.2em rgba(0,0,0,0.25);
}

.macbtn:hover {
  filter: saturate(1.03) contrast(1.01);
}

.macbtn:active {
  transform: translateY(1px);
  box-shadow:
    0 0.375em 0.5em rgba(0,0,0,0.22),
    0 0.125em 0.125em rgba(0,0,0,0.25),
    inset 0 0.25em 0.25em rgba(0,0,0,0.38),
    inset 0 0.375em 0.5em 0.2em #CCCCCC;
}
