 /* ========================
   GOOGLE FONT
   ======================== */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600&display=swap');

/* ========================
   VARIABLES
   ======================== */
:root {
  --color-primary: #6B9080;
  --color-primary-light: #CCE3DE;
  --color-bg: #F6FFF8;
  --color-dark: #07393C;
  --color-white: #ffffff;
  --color-accent: #F5CB5C;
  --color-border: #CCE3DE;
  --color-text: #07393C;
  --color-text-muted: #6B9080;
  --color-gray-500: #8a9e99;

  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(7, 57, 60, 0.08);
  --shadow-md: 0 4px 12px rgba(7, 57, 60, 0.1);
  --shadow-lg: 0 8px 24px rgba(7, 57, 60, 0.12);

  --border-radius-md: var(--radius-md);
}

/* ========================
   RESET & BASE
   ======================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  background-color: var(--color-bg);
  color: var(--color-text);
}

body {
  font-family: 'DM Sans', sans-serif;
  display: flex;
  flex-direction: column;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
 
 
 .auth-page {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 2rem 1rem;
        }

        .auth-card {
            background: var(--color-white);
            border: 1px solid var(--color-border);
            border-radius: var(--radius-xl);
            padding: 2rem;
            width: 100%;
            max-width: 420px;
            box-shadow: var(--shadow-md);
        }

        .auth-header {
            text-align: center;
            margin-bottom: 1.75rem;
        }

        .auth-icon {
            width: 52px;
            height: 52px;
            background: var(--color-primary-light);
            border-radius: var(--radius-full);
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1rem;
            font-size: 1.4rem;
            color: var(--color-primary);
        }

        .auth-header h1 {
            font-size: 20px;
            font-weight: 600;
            color: var(--color-dark);
            margin-bottom: 0.25rem;
        }

        .auth-header p {
            font-size: 13px;
            color: var(--color-text-muted);
        }

        .auth-field {
            display: flex;
            flex-direction: column;
            gap: 0.375rem;
            margin-bottom: 1rem;
        }

        .auth-field label {
            font-size: 13px;
            font-weight: 500;
            color: var(--color-dark);
        }

        .auth-field input {
            width: 100%;
            padding: 0.625rem 0.875rem;
            border: 1px solid var(--color-border);
            border-radius: var(--radius-md);
            font-size: 14px;
            color: var(--color-dark);
            background: var(--color-bg);
            outline: none;
            font-family: inherit;
            transition: border-color 0.15s;
        }

        .auth-field input:focus {
            border-color: var(--color-primary);
            box-shadow: 0 0 0 3px rgba(107, 144, 128, 0.15);
        }

        .auth-field input.input-error { border-color: #e74c3c; }
        .auth-field input.input-ok    { border-color: var(--color-primary); }

        /* Password requirements */
        .pw-requirements {
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
            margin-top: 0.375rem;
        }

        .pw-req {
            display: flex;
            align-items: center;
            gap: 0.375rem;
            font-size: 12px;
            color: var(--color-text-muted);
            transition: color 0.2s;
        }

        .pw-req i {
            font-size: 0.75rem;
            width: 14px;
        }

        .pw-req.met   { color: var(--color-primary); }
        .pw-req.unmet { color: var(--color-text-muted); }

        /* Match indicator */
        .pw-match {
            font-size: 12px;
            margin-top: 0.375rem;
            display: flex;
            align-items: center;
            gap: 0.375rem;
            min-height: 18px;
        }

        .pw-match.match   { color: var(--color-primary); }
        .pw-match.nomatch { color: #e74c3c; }

        /* Error message */
        .auth-error {
            background: #fef2f2;
            border: 0.5px solid #fcc;
            color: #7f1d1d;
            border-radius: var(--radius-md);
            padding: 0.75rem 1rem;
            font-size: 13px;
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .btn-auth {
            width: 100%;
            padding: 0.75rem;
            background: var(--color-primary);
            color: var(--color-white);
            border: none;
            border-radius: var(--radius-md);
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: background 0.15s;
            margin-top: 0.5rem;
        }

        .btn-auth:hover { background: #5a7a6e; }
        .btn-auth:active { transform: scale(0.98); }

        .auth-footer {
            text-align: center;
            margin-top: 1.25rem;
            font-size: 13px;
            color: var(--color-text-muted);
        }

        .auth-footer a {
            color: var(--color-primary);
            font-weight: 500;
        }

        .auth-footer a:hover { text-decoration: underline; }

        
/*-----------------------LOGIN FORM--------------------*/
/* ========================
   AUTH PAGES (login, signup)
   ======================== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: var(--color-bg);
}

.auth-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-md);
}

.auth-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.auth-icon {
  width: 56px;
  height: 56px;
  background: var(--color-primary-light);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.auth-header h1 {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0.25rem;
}

.auth-header p {
  font-size: 13px;
  color: var(--color-text-muted);
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 1rem;
}

.auth-field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-dark);
}

.auth-field input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--color-dark);
  background: var(--color-bg);
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s;
}

.auth-field input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(107, 144, 128, 0.15);
}

.auth-msg {
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 13px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.auth-msg.error {
  background: #fef2f2;
  border: 0.5px solid #fcc;
  color: #7f1d1d;
}

.auth-msg.success {
  background: #e8f4f0;
  border: 0.5px solid #a8d4c8;
  color: #0f5946;
}

.btn-auth {
  width: 100%;
  padding: 0.75rem;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  margin-top: 0.25rem;
}

.btn-auth:hover  { background: #5a7a6e; }
.btn-auth:active { transform: scale(0.98); }

.auth-footer {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 13px;
  color: var(--color-text-muted);
}

.auth-footer a {
  color: var(--color-primary);
  font-weight: 500;
}

.auth-footer a:hover { text-decoration: underline; }

/* Password requirements (signup) */
.pw-requirements {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.375rem;
}

.pw-req {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 12px;
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.pw-req i { font-size: 0.75rem; width: 14px; }
.pw-req.met   { color: var(--color-primary); }
.pw-req.unmet { color: var(--color-text-muted); }

.pw-match {
  font-size: 12px;
  margin-top: 0.375rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 18px;
}

.pw-match.match   { color: var(--color-primary); }
.pw-match.nomatch { color: #e74c3c; }