@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    color-scheme: light;
    font-family: 'Inter', system-ui, sans-serif;
    background-color: #f7f7f5;
    color: #111111;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #f7f7f5;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem;
}

.auth-card {
    width: min(420px, 100%);
    background: #ffffff;
    border-radius: 18px;
    padding: 2.5rem;
    box-shadow: 0 18px 45px rgba(15, 15, 15, 0.08);
    display: grid;
    gap: 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #111111;
}

.brand-title {
    font-weight: 600;
}

.brand-subtitle {
    font-size: 0.85rem;
    color: #6b6b6b;
}

h1 {
    font-size: 1.6rem;
}

.muted {
    color: #6b6b6b;
    font-size: 0.92rem;
}

.form {
    display: grid;
    gap: 1rem;
}

label {
    display: grid;
    gap: 0.35rem;
    font-size: 0.9rem;
    color: #3a3a3a;
}

input,
select,
textarea {
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    border: 1px solid #e3e3e3;
    background: #ffffff;
    font-size: 0.95rem;
}

textarea {
    resize: vertical;
}

button,
.primary,
.secondary,
.ghost {
    border-radius: 10px;
    padding: 0.65rem 1rem;
    border: 1px solid transparent;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.primary {
    background: #111111;
    color: #ffffff;
}

.secondary {
    background: #ffffff;
    border-color: #d9d9d9;
    color: #111111;
}

.ghost {
    background: transparent;
    color: #3a3a3a;
}

.alert {
    background: #fff4f4;
    border: 1px solid #ffd6d6;
    color: #a10000;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
}

.helper {
    font-size: 0.85rem;
    color: #6b6b6b;
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2.5rem;
    border-bottom: 1px solid #eeeeee;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.top-actions {
    display: flex;
    gap: 0.75rem;
}

.container {
    padding: 2rem 2.5rem 4rem;
    display: grid;
    gap: 2rem;
}

.intro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.grid {
    display: grid;
    gap: 2rem;
}

.card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.75rem;
    border: 1px solid #eeeeee;
    display: grid;
    gap: 1.5rem;
}

.card-header h2 {
    font-size: 1.35rem;
    margin-bottom: 0.4rem;
}

.update-form {
    display: grid;
    gap: 1rem;
}

.history table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.history th,
.history td {
    text-align: left;
    padding: 0.65rem 0.5rem;
    border-bottom: 1px solid #eeeeee;
    vertical-align: top;
}

.history th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b6b6b;
}

.share .update-form,
.share .top-actions {
    display: none;
}

@media (max-width: 900px) {
    .top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .container {
        padding: 1.5rem;
    }
}
