:root {
    --background: #f8fafc;
    --foreground: #020817;
    --card: #ffffff;
    --card-foreground: #020817;
    --primary: #0f172a;
    --primary-foreground: #f8fafc;
    --secondary: #f1f5f9;
    --secondary-foreground: #0f172a;
    --muted: #f1f5f9;
    --muted-foreground: #64748b;
    --destructive: #ef4444;
    --border: #e2e8f0;
    --input: #e2e8f0;
    --ring: #020817;
    --radius: 0.5rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'TT Norms Pro', sans-serif;
}

body {
    background: var(--background);
    color: var(--foreground);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

body.wide {
    min-height: 50vh;
}

.container {
    width: 100%;
    max-width: 400px;
    margin: 0 1rem;
}

body.wide .container {
    max-width: 600px;
}

.card {
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 1.75rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.card-header {
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.025em;
}

.card-description {
    margin-top: 0.5rem;
    color: var(--muted-foreground);
    font-size: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--input);
    color: var(--foreground);
    transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 0 1px var(--ring);
}

.error-message {
    color: var(--destructive);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.submit-button {
    width: 100%;
    padding: 0.625rem 1rem;
    background: var(--primary);
    color: var(--primary-foreground);
    border: none;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
    font-size: 1rem;
}

.submit-button:hover {
    opacity: 0.9;
}

.cancel-button {
    width: 100%;
    padding: 0.625rem 1rem;
    background: var(--secondary);
    color: var(--secondary-foreground);
    border: none;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
    font-size: 1rem;

    margin-left: 1rem;
}

.cancel-button:hover {
    opacity: 0.9;
}

.logout-button {
    width: 100px;
    margin-top: 1rem;
}

.home-login-info {
    margin-top: 1rem;
}