   * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
       margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    background: url('./images/sailcascais.jpg') no-repeat center center fixed;
    background-size: cover;
    color: white;
    }

    /* HEADER */
.sp-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
}

.sp-nav {
  max-width: 1500px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LOGO */
.sp-logo img {
  height: 48px;
  display: block;
}

/* LINKS */
.sp-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.sp-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 400;
}

.sp-links a:hover {
  color: #ffffff;
}

/* SIGN IN BUTTON */
.sp-signin {
  padding: 8px 24px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(6px);
}

.background-container {
  position: fixed;   /* Stays in place when scrolling */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;       /* Behind all content */
  overflow: hidden;  /* Hide image overflow after crop */
}

.background-image {
  width: 100%;
  height: 100%;
  object-fit: cover;      /* Keeps aspect ratio, fills screen */
  object-position: center; /* Center the focal point */
}
  
  .background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
    rgba(15, 23, 42, 0.4),    /* Top - 40% opacity */
    rgba(15, 23, 42, 0.3),    /* Middle - 30% opacity */
    rgba(15, 23, 42, 0.6)     /* Bottom - 60% opacity */
  );
  }

    .container {
        width: 100%;
  	max-width: 28rem;
  	margin: 0 auto;              /* horizontal center */
  	padding-top: 6rem;           /* pushes it below the header */
  	position: relative;
  	z-index: 1;
    }

    /* Sign In Card */
    .signin-card {
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(20px);
      border-radius: 1rem;
      padding: 2rem;
      box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
      border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .card-header {
      text-align: center;
      margin-bottom: 2rem;
    }

    .card-header h1 {
      color: #0f172a;
      font-size: 1.875rem;
      font-weight: 700;
      margin-bottom: 0.5rem;
    }

    .card-header p {
      color: #475569;
      font-size: 1rem;
    }

    /* Form */
    .form {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
    }

    .form-group {
      display: flex;
      flex-direction: column;
    }

    .form-label {
      display: block;
      color: #334155;
      font-weight: 500;
      margin-bottom: 0.5rem;
      font-size: 0.875rem;
    }

    .label-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 0.5rem;
    }

    .forgot-link {
      font-size: 0.875rem;
      color: #f97316;
      text-decoration: none;
      transition: color 0.2s ease;
    }

    .forgot-link:hover {
      color: #ea580c;
    }

    .input-wrapper {
      position: relative;
    }

    .input-icon {
      position: absolute;
      left: 1rem;
      top: 50%;
      transform: translateY(-50%);
      color: #94a3b8;
      width: 20px;
      height: 20px;
    }

    .form-input {
      width: 100%;
      padding: 0.75rem 1rem 0.75rem 3rem;
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      border-radius: 0.75rem;
      color: #0f172a;
      font-size: 1rem;
      font-family: inherit;
      transition: all 0.2s ease;
    }

    .form-input::placeholder {
      color: #94a3b8;
    }

    .form-input:focus {
      outline: none;
      ring: 2px solid #f97316;
      border-color: transparent;
      box-shadow: 0 0 0 2px #f97316;
    }

    /* Checkbox */
    .checkbox-group {
      display: flex;
      align-items: center;
    }

    .checkbox-input {
      width: 1rem;
      height: 1rem;
      border: 1px solid #cbd5e1;
      border-radius: 0.25rem;
      cursor: pointer;
      accent-color: #f97316;
    }

    .checkbox-label {
      margin-left: 0.5rem;
      color: #475569;
      font-size: 0.875rem;
      font-weight: 400;
      cursor: pointer;
    }
    
     .message {
      display: none;
      align-items: center;
      gap: 0.5rem;
      padding: 0.75rem 1rem;
      margin-bottom: 1.5rem;
      border-radius: 8px;
      font-size: 0.9rem;
      font-weight: 500;
    }

    .message.show {
      display: flex;
    }

    .message.success {
      background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(76, 175, 80, 0.05));
      border-left: 4px solid #4caf50;
      color: #1b5e20;
    }

    .message.error {
      background: linear-gradient(135deg, rgba(229, 57, 53, 0.1), rgba(229, 57, 53, 0.05));
      border-left: 4px solid #e53935;
      color: #c62828;
    }

    /* Submit Button */
    .btn-submit {
      width: 100%;
      padding: 1rem;
      background: linear-gradient(to right, #f97316, #ea580c);
      color: white;
      border: none;
      border-radius: 0.75rem;
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      box-shadow: 0 10px 15px -3px rgba(249, 115, 22, 0.3);
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      font-family: inherit;
    }

    .btn-submit:hover {
      background: linear-gradient(to right, #ea580c, #c2410c);
      box-shadow: 0 20px 25px -5px rgba(249, 115, 22, 0.4);
    }

    .btn-submit:hover .arrow-icon {
      transform: translateX(4px);
    }

    .arrow-icon {
      width: 20px;
      height: 20px;
      transition: transform 0.2s ease;
    }

    /* Divider */
    .divider {
      position: relative;
      margin: 2rem 0;
    }

    .divider-line {
      border-top: 1px solid #e2e8f0;
    }

    .divider-text {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background: white;
      padding: 0 1rem;
      color: #64748b;
      font-size: 0.875rem;
    }

    /* Social Buttons */
    .social-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1rem;
    }

    .btn-social {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      padding: 0.75rem 1rem;
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      border-radius: 0.75rem;
      color: #334155;
      font-size: 0.875rem;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s ease;
      font-family: inherit;
    }

    .btn-social:hover {
      background: #f1f5f9;
    }

    .social-icon {
      width: 20px;
      height: 20px;
    }

    /* Sign Up Link */
    .signup-text {
      margin-top: 2rem;
      text-align: center;
      color: #475569;
      font-size: 0.875rem;
    }

    .signup-link {
      color: #f97316;
      text-decoration: none;
      transition: color 0.2s ease;
    }

    .signup-link:hover {
      color: #ea580c;
    }

    /* Back to Home */
    .back-link {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      margin-top: 1.5rem;
      color: rgba(255, 255, 255, 0.9);
      text-decoration: none;
      transition: color 0.2s ease;
      font-size: 0.875rem;
    }

    .back-link:hover {
      color: white;
    }

    .back-icon {
      width: 16px;
      height: 16px;
      transform: rotate(180deg);
    }

    .text-center {
      text-align: center;
    }

    /* Icons - Simple SVG Icons */
    .icon {
      stroke: currentColor;
      fill: none;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }