*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Figtree, ui-sans-serif, system-ui, sans-serif;
    background: #f3f4f6;
    color: #111827;
    line-height: 1.5;
}

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

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.auth-card {
    width: 100%;
    max-width: 28rem;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    padding: 2rem;
}

.auth-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.auth-logo img {
    max-width: 220px;
    width: 100%;
    height: auto;
}

.auth-card h1 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.auth-card p {
    margin: 0 0 1.5rem;
    color: #6b7280;
    font-size: 0.95rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group select {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.95rem;
    background: #fff;
}

.form-group input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-group input.has-error {
    border-color: #ef4444;
}

.password-toggle-group {
    position: relative;
}

.password-toggle-group input {
    padding-right: 3.5rem;
}

.password-toggle-btn {
    position: absolute;
    top: 50%;
    right: 0.65rem;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.password-toggle-btn:hover {
    color: #4f46e5;
}

.form-error {
    margin-top: 0.35rem;
    color: #ef4444;
    font-size: 0.8125rem;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

.btn-primary {
    width: 100%;
    background: #4f46e5;
    color: #fff;
}

.btn-primary:hover {
    background: #4338ca;
}

.btn-secondary {
    background: #e5e7eb;
    color: #374151;
}

.btn-secondary:hover {
    background: #d1d5db;
}

.btn-danger {
    background: #ef4444;
    color: #fff;
}

.btn-danger:hover {
    background: #dc2626;
}

.auth-footer {
    margin-top: 1.25rem;
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
}

.auth-footer a {
    color: #4f46e5;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

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

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.navbar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0 1.5rem;
}

.navbar-inner {
    max-width: 72rem;
    margin: 0 auto;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-size: 1.125rem;
    font-weight: 700;
    color: #4f46e5;
}

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

.nav-user {
    font-size: 0.875rem;
    color: #6b7280;
}

.main-content {
    flex: 1;
    max-width: 72rem;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    margin: 0 0 0.5rem;
    font-size: 1.875rem;
    font-weight: 700;
}

.dashboard-header p {
    margin: 0;
    color: #6b7280;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #fff;
    border-radius: 0.75rem;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.stat-card h2 {
    margin: 0 0 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
}

.stat-card p {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.panel {
    background: #fff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.panel h2 {
    margin: 0 0 1rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.panel dl {
    margin: 0;
    display: grid;
    grid-template-columns: 8rem 1fr;
    gap: 0.75rem 1rem;
}

.panel dt {
    font-size: 0.875rem;
    color: #6b7280;
}

.panel dd {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
}
