/* =========================================
   DESIGN TOKENS
   Duplicated from style.css: login/signup/verify/complete_setup.html load ONLY this
   file (not style.css), so this block can't be dropped in favor of style.css's copy.
   Keep both identical if either changes.
   ========================================= */
:root {
    /* Neutrals */
    --color-ink: #000;
    --color-white: #fff;
    --color-bg-grey: #d9d9d9;
    --color-bg-subtle: #f5f5f5;
    --color-bg-hover: #f0f0f0;
    --color-bg-faint: #f7f7f7;
    --color-text-muted-dark: #444;
    --color-text-muted: #555;
    --color-text-muted-light: #666;
    --color-text-muted-lighter: #888;

    /* Feedback text (canonical: consistent across auth/dashboard/eho feedback lines) */
    --color-text-error: #9d0000;
    --color-text-success: #005c2c;

    /* Traffic-light / status tones (canonical: dashboard.css's flat triplet) */
    --color-state-green: #cfeecf;
    --color-state-amber: #fce883;
    --color-state-red: #f6c2c2;

    /* Brand */
    --color-brand-pink: #dfa6a6;
    --color-brand-pink-alt: #e3acb5;
    --color-brand-pink-alt-2: #dfdedf;

    /* Radius scale */
    --radius-xs: 3px;
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --radius-pill: 999px;
    --radius-circle: 50%;

    /* Shadows */
    --shadow-menu: 0 10px 0 rgba(0, 0, 0, 0.12);
    --shadow-tooltip: 0 10px 30px rgba(0, 0, 0, 0.18);
    --shadow-highlight: 0 8px 24px rgba(255, 222, 89, 0.2);
    --shadow-ring: 0 0 0 3px rgba(0, 0, 0, 0.08);
    --shadow-inset-active: inset 0 0 0 1.032px #000;

    /* Fonts */
    --font-sans: 'Inter', sans-serif;
    --font-handwritten: 'bamuelsarfitwo', sans-serif;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg-grey);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: var(--font-sans);
    color: var(--color-ink);
}

/* Typography */
.font-sans {
    font-family: var(--font-sans);
    font-weight: 800;
}

@font-face {
    font-family: 'bamuelsarfitwo';
    src: url('bamuelsarfitwo.ttf') format('truetype');
}

.font-handwritten {
     font-family: var(--font-handwritten);
}

/* Containers */
.auth-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 20px;
}

.auth-title {
    font-size: 3rem;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.auth-box {
    background-color: var(--color-white);
    border: 1px solid var(--color-ink);
    padding: 40px;
    width: 100%;
    max-width: 450px;
}

.border-box {
    background-color: var(--color-white);
    border: 1px solid var(--color-ink);
}

/* SSO Buttons */
.sso-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
    background-color: var(--color-bg-grey);
    border: none;
    padding: 12px;
    margin-bottom: 15px;
    cursor: pointer;
    font-size: 1.1rem;
}

.sso-btn:hover {
    background-color: #c9c9c9;
}

/* Divider */
.divider {
    text-align: center;
    margin: 20px 0;
    font-size: 1.1rem;
}

/* Form Elements */
form {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.input-field {
    background-color: var(--color-bg-grey);
    border: none;
    padding: 12px;
    font-size: 1.2rem;
    margin-bottom: 20px;
    width: 100%;
}

.input-field:focus {
    outline: 2px solid var(--color-ink);
}

/* 2FA Specific */
.twofa-text {
    font-size: 1.2rem;
    line-height: 1.4;
    margin-bottom: 25px;
}

.resend-link {
    color: var(--color-ink);
    text-decoration: none;
}

.resend-link:hover {
    text-decoration: underline;
}

.inline-link-btn {
    border: none;
    background: transparent;
    color: var(--color-ink);
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}

.auth-feedback {
    min-height: 22px;
    margin: 0 0 12px;
    font-size: 0.95rem;
    font-weight: 700;
}

.auth-feedback-error {
    color: var(--color-text-error);
}

.auth-feedback-success {
    color: var(--color-text-success);
}

/* .verify-btn {
    background-color: var(--color-brand-pink);
    color: var(--color-white);
    border: none;
    padding: 10px 25px;
    border-radius: 20px;
    font-size: 1.2rem;
    cursor: pointer;
    align-self: flex-start;
    margin-top: 10px;
} */

/* .verify-btn:hover {
    background-color: #d09595;
} */

.submit-btn, .verify-btn {
  background-color: var(--color-white);
  border: 1px solid var(--color-ink);
  padding: 12px 24px;
  border-radius: var(--radius-xl);
  font-size: 1.1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.2s ease;
}

.submit-btn:hover {
  background-color: var(--color-bg-hover);
}

/* =========================================
   SIGN UP PAGE SPECIFIC STYLES
   ========================================= */

/* Split 50/50 vertical background */
body.split-bg {
    background: linear-gradient(to bottom, var(--color-brand-pink) 50vh, var(--color-bg-grey) 50vh);
    background-repeat: no-repeat;
    background-attachment: fixed; /* Keeps the split stable when scrolling */
}

/* Wider box for the 2-column layout */
.auth-box-large {
    display: flex;
    flex-direction: row;
    background-color: var(--color-white);
    border: 1px solid var(--color-ink);
    width: 100%;
    max-width: 900px;
    min-height: 550px;
    margin: 0 auto;
}

/* Left Panel: Benefits */
.benefits-panel {
    flex: 1;
    background-color: var(--color-bg-subtle); /* Subtle contrast to separate from the form */
    border-right: 1px solid var(--color-ink);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.benefits-panel .logo {
    font-size: 1.5rem;
    margin-bottom: 40px;
}

.benefits-panel h2 {
    font-size: 2rem;
    margin-bottom: 25px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.benefits-panel ul {
    list-style: none;
    padding: 0;
}

.benefits-panel ul li {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* Right Panel: Form */
.form-panel {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-panel .auth-title {
    font-size: 2.5rem;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.login-link {
    margin-top: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.login-link a {
    color: var(--color-ink);
    font-weight: 700;
    text-decoration: underline;
}

.input-file {
width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid var(--color-ink);
  border-radius: var(--radius-lg);
  background-color: #f9f9f9;
  font-size: 1rem;
  cursor: pointer;
}

/* Responsive Rule for Mobile */
@media (max-width: 768px) {
    .auth-box-large {
        flex-direction: column;
    }
    .benefits-panel {
        border-right: none;
        border-bottom: 1px solid var(--color-ink);
    }
}

