@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
  --primary: #3e2723;
  --primary-hover: #5d4037;
  --accent: #c4a378;
  --bg-light: #fdfaf7;
  --text-dark: #3e2723;
  --text-muted: #8d6e63;
  --white: #ffffff;
  --shadow-auth: 0 15px 35px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', sans-serif;
}

body {
  background: var(--bg-auth);
  min-height: 100vh;
}


/* Auth Wrapper */
.auth-wrapper {
  max-width: 500px;
  background: white;
  margin: 60px auto;
  padding: 40px;
  border-radius: 24px;
  box-shadow: var(--shadow-auth);
  text-align: center;
}

.auth-wrapper h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 30px;
}

.role-select {
  display: flex;
  background: #F1F5F9;
  padding: 6px;
  border-radius: 12px;
  margin-bottom: 35px;
}

.role-select button {
  flex: 1;
  padding: 12px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.role-select button.active {
  background: white;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Forms */
.form-box h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 25px;
  color: var(--text-dark);
}

.form-box input,
.form-box select,
.form-box textarea {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 16px;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  font-size: 15px;
  transition: var(--transition);
}

.form-box input:focus,
.form-box select:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(43, 97, 225, 0.1);
}

.form-box button {
  width: 100%;
  padding: 16px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
  transition: var(--transition);
}

.form-box button:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(43, 97, 225, 0.2);
}

.form-box p {
  margin-top: 20px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
}

.form-box span {
  color: var(--primary);
  font-weight: 600;
}

.hidden {
  display: none;
}

/* Inline form row (e.g. Age + Gender side by side) */
.form-inline-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.form-inline-row input,
.form-inline-row select {
  margin-bottom: 0;
}

.flex-1 {
  flex: 1;
}

.flex-1-5 {
  flex: 1.5;
}

/* --- Responsive Styles --- */

@media (max-width: 768px) {
    .auth-wrapper {
        margin: 20px auto;
        padding: 30px 20px;
        width: 95%;
        border-radius: 16px;
    }

    .auth-wrapper h1 {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .role-select {
        margin-bottom: 25px;
    }

    .role-select button {
        padding: 10px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .form-inline-row {
        flex-direction: column;
        gap: 0;
    }

    .form-inline-row input,
    .form-inline-row select {
        margin-bottom: 16px;
    }

    .auth-wrapper h1 {
        font-size: 22px;
    }
}
