/* ==========================================================================
   MarsHash.uk - Project 2.0 - FINAL RECTIFIED STYLESHEET
   - This file is adapted to the final index.html and script.js.
   - It is the single source of truth for all custom styles.
   ========================================================================== */

/* --- Base & Background --- */

body {
    background-color: #0f172a; /* Default dark background (slate-900) */
    color: #e2e8f0; /* Default text color (slate-200) */
    font-family: sans-serif;
    background-image: url('/MH-backdrop1.jpg'); /* Your background image */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* --- Unified Authentication Flow Styling --- */

/* The semi-transparent card that holds the login/register forms */
.auth-card {
    background-color: rgba(15, 23, 42, 0.8); /* slate-900 with 80% opacity */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(51, 65, 85, 0.5);
}

/* Special background for the manifest/statement section */
.manifest-bg {
    background-image: url('MH-ujack.jpg');
    background-size: cover;
    background-position: center;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

/* Standard style for all input fields in auth forms */
.auth-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: rgb(51 65 85); /* bg-slate-700 */
    border: 1px solid rgb(71 85 105); /* border-slate-600 */
    border-radius: 0.375rem;
    color: #e2e8f0;
    transition: all 0.2s ease-in-out;
}
.auth-input:focus {
    outline: none;
    border-color: #CD5C5C; /* mars color */
    box-shadow: 0 0 0 1px #CD5C5C;
}

/* Main button style (orange gradient) */
.auth-button {
    width: 100%;
    background-image: linear-gradient(to right, #f97316, #ea580c); /* mars-gradient */
    color: white;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    border-radius: 0.375rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
    border: none;
    cursor: pointer;
}
.auth-button:hover {
    opacity: 0.9;
}

/* Secondary button style (translucent dark) */
.auth-button-secondary {
    width: 100%;
    background-color: rgba(51, 65, 85, 0.5);
    border: 1px solid rgb(71 85 105);
    color: white;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    border-radius: 0.375rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    cursor: pointer;
}
.auth-button-secondary:hover {
    background-color: rgba(71, 85, 105, 0.7);
}

/* --- Enhanced Tab Navigation --- */

.tab-content {
  display: none; /* JS handles showing/hiding */
}

.tab-content.active {
  display: block;
}

.tab-button {
  transition: all 0.3s ease;
}

.tab-button.active {
  background-color: #CD5C5C; /* Your 'mars' color */
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(205, 92, 92, 0.3);
}

.tab-button:not(.active):hover {
  background-color: rgba(205, 92, 92, 0.2);
  transform: translateY(-1px);
}

/* --- Custom Component Styles --- */

#marsFooter {
  background-color: rgba(15, 23, 42, 0.25);
  color: #f1f5f9;
  padding: 20px;
  font-size: 0.9rem;
  text-align: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

#marsFooter ul {
  list-style-type: none;
  padding-left: 0;
  margin: 10px 0;
}

#marsFooter ul li {
  margin: 6px 0;
}

#marsFooter a {
  color: #f1f5f9;
  text-decoration: underline;
}

#marsFooter a:hover {
  color: #f97316;
}

/* --- Utility & Helper Classes --- */

.hidden {
  display: none !important;
}

.loading-spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #f97316;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.text-shadow-default {
    text-shadow: 1px 1px 2px #000;
}
.text-shadow-heavy {
    text-shadow: 2px 2px 4px #000;
}
