:root {
    --primary-color: #5E50C5;
    --primary-hover: #4d41a8;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #f8fafc;
    --white: #ffffff;
    --border-color: #e2e8f0;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.auth-container {
    width: 100%;
    max-width: 480px;
    padding: 2rem;
    text-align: center;
    transition: max-width 0.3s;
}

.auth-container.wide {
    max-width: 1100px;
}

.logout-fixed {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    z-index: 1000;
}

.logout-fixed:hover {
    transform: scale(1.1);
    background-color: #f8fafc;
}

.logout-fixed svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary-color);
}

.logo-container {
    margin-bottom: 2rem;
}

.logo-container img {
    max-width: 150px;
    height: auto;
    margin-bottom: 1rem;
}

.auth-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

h2 {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-light);
    font-weight: 500;
}

.form-group {
    text-align: left;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.checkbox-group input {
    margin-right: 0.5rem;
}

.btn-primary {
    width: 100%;
    padding: 0.875rem;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s;
    letter-spacing: 0.05em;
}

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

.alert {
    padding: 0.75rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.alert-error {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    min-width: 280px;
    padding: 1rem 1.25rem;
    background: var(--white);
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-left: 5px solid var(--primary-color);
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.success { border-left-color: #10b981; }
.toast.error { border-left-color: #ef4444; }

@keyframes slideIn {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateY(-20px); }
}

/* Helper utilities to replace inline styles across auth views */
.hidden { display: none; }
.text-muted { color: var(--text-light); }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.btn-block { display: block; text-decoration: none; }
