/* ================= RESET ================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: var(--font-size-md);
    color: var(--color-text-primary);
    background: #ffffff;

    height: 100%;
}


/* ================= ROOT LAYOUT ================= */

body {
    display: flex;
    flex-direction: column;
}

.page {
    flex: 1;
    padding: 24px;
    background: var(--color-bg-page);
}


/* ================= UTIL ================= */

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }

.text-secondary {
    color: var(--color-text-secondary);
}


/* ================= BUTTON RESET ================= */

button {
    border: none;
    background: none;
    cursor: pointer;
    font: inherit;
}


/* ================= FORM ================= */
.form-card {
    width: 100%;
    max-width: 520px;
    margin: 40px auto;
    padding: 24px;

    background: #fff;
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-lg);
}
.form-container {
    max-width: 960px;
    margin: 0 auto;
}

.form-section {
    background: var(--color-bg-surface);
    border: var(--border-default);
    border-radius: var(--radius-xl);
    padding: 16px;
}

/* ================= PAGE ================= */
.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-content {
    flex: 1;
}

/* ================= BUTTON ================= */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 36px;
    padding: 0 16px;

    border-radius: 8px;

    font-size: 14px;
    font-weight: 500;

    border: 1px solid #d1d5db;
    background: #ffffff;

    cursor: pointer;
}

.button.primary {
    background: #2563eb;
    color: #fff;
    border: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.button.secondary {
    background: #fff;
    color: #111;
}